Skip to content
This repository has been archived by the owner on May 22, 2018. It is now read-only.

Commit

Permalink
Add a cardboard proxy executable
Browse files Browse the repository at this point in the history
  • Loading branch information
jbarnette committed Dec 1, 2012
1 parent 472a40b commit 358215d
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 2 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
/.bundle
/bin
/cardboard-*.gem
13 changes: 13 additions & 0 deletions bin/cardboard
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/usr/bin/env ruby
# A proxy for libexec.

require "pathname"

libexec = Pathname.new(__FILE__).realpath + "../../libexec"
script = libexec + ARGV.pop

unless script.executable?
abort "Unknown script: #{script}"
end

exec script.to_s, *ARGV
1 change: 1 addition & 0 deletions cardboard.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Gem::Specification.new do |gem|
gem.summary = "Because copypasta is for toolbags."
gem.homepage = "https://github.com/boxen/cardboard"

gem.executables = ["cardboard"]
gem.files = `git ls-files`.split $/
gem.test_files = gem.files.grep /^test/
gem.require_paths = ["lib"]
Expand Down
2 changes: 2 additions & 0 deletions libexec/bootstrap
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/sh
# Bootstrap shim. Currently a no-op.
2 changes: 1 addition & 1 deletion script/bootstrap
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ set -e
cd $(dirname "$0")/..

rm -rf .bundle/config
bundle install --binstubs bin --path .bundle --quiet
bundle install --path .bundle --quiet

0 comments on commit 358215d

Please sign in to comment.