lib/appbundler/cli.rb in appbundler-0.12.5 vs lib/appbundler/cli.rb in appbundler-0.13.1
- old
+ new
@@ -25,21 +25,10 @@
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 :binstubs_source,
- long: "--binstubs-source path/to/binstubs",
- description: "Path to binstubs within the gem to be moved into the bindir",
- default: nil
-
- 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,
@@ -107,20 +96,16 @@
end
end
def run
gems.each do |g|
- app = App.new(bundle_path, bin_path, g, config[:extra_bin_files])
+ app = App.new(bundle_path, bin_path, g)
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])
$stdout.puts "Generated merged lockfile at #{created_lockfile}" if created_lockfile
- if config[:binstubs_source]
- app.copy_binstubs(config[:binstubs_source])
- $stdout.puts "Copied binstubs"
- end
end
end
def err(message)
$stderr.print("#{message}\n")