lib/appbundler/cli.rb in appbundler-0.12.0 vs lib/appbundler/cli.rb in appbundler-0.12.1

- old
+ new

@@ -25,10 +25,16 @@ :long => "--without GROUPS", :description => "Comma separated list of groups to exclude when building transitive Gemfile.locks (internal API)", :proc => lambda { |o| o.split(/[\s,]+/) }, :default => [] + option :extra_bin_files, + :long => "--extra-bin-files bin1,bin2", + :description => "Comma separated list of extra binstubs to wire up which are not listed in the gemspec", + :proc => lambda { |o| o.split(/[\s,]+/) }, + :default => [] + option :version, :short => "-v", :long => "--version", :description => "Show appbundler version", :boolean => true, @@ -96,10 +102,10 @@ end end def run gems.each do |g| - app = App.new(bundle_path, bin_path, g) + app = App.new(bundle_path, bin_path, g, extra_bin_files) created_stubs = app.write_executable_stubs created_stubs.each do |real_executable_path, stub_path| $stdout.puts "Generated binstub #{stub_path} => #{real_executable_path}" end created_lockfile = app.write_merged_lockfiles(without: config[:without])