bin/appbundle-updater in appbundle-updater-0.6.7 vs bin/appbundle-updater in appbundle-updater-0.6.10

- old
+ new

@@ -191,10 +191,11 @@ def initialize(options) @app = options[:app] @ref = options[:ref] @tarball = options[:tarball] @extra_bin_files = options[:extra_bin_files] + @binstubs_source = options[:binstubs_source] @repo = options[:repo] || @app.repo end def start if !windows? && Process.uid != 0 @@ -254,10 +255,11 @@ banner("Updating appbundler binstubs for #{app}") Dir.chdir(app_dir) do cmd = "#{bin_dir.join("appbundler")} #{app_dir} #{chefdk.join("bin")}" cmd += " --extra-bin-files #{@extra_bin_files}" if @extra_bin_files + cmd += " --binstubs-source #{@binstubs_source}" if @binstubs_source ruby(cmd) end banner("Finished!") end @@ -300,9 +302,12 @@ opts.on("-h", "--help", "Prints this help") do puts opts exit end opts.on("-E", "--extra-bin-files BIN1,BIN2") do |e| + options[:extra_bin_files] = e + end + opts.on("-B", "--binstubs-source path/to/source") do |e| options[:extra_bin_files] = e end opts.separator("") opts.separator("App names:") CHEFDK_APPS.each { |a| opts.separator(" * #{a.name}") }