lib/appbundler/cli.rb in appbundler-0.11.0 vs lib/appbundler/cli.rb in appbundler-0.11.1

- old
+ new

@@ -71,15 +71,13 @@ usage_and_exit! else @bundle_path = File.expand_path(cli_arguments[0]) @bin_path = File.expand_path(cli_arguments[1]) @gems = cli_arguments[2..-1] - @gems = [ File.basename(@bundle_path) ] if @gems.empty? + @gems = [ nil ] if @gems.empty? verify_bundle_path verify_bin_path - verify_gems_installed - verify_deps_are_accessible end end def verify_bundle_path if !File.directory?(bundle_path) @@ -93,34 +91,9 @@ def verify_bin_path if !File.directory?(bin_path) err("BINSTUB_DIR `#{bin_path}' is not a directory or doesn't exist") usage_and_exit! - end - end - - def verify_gems_installed - gems.each do |g| - begin - app = App.new(bundle_path, bin_path, g) - app.app_gemspec - rescue Gem::LoadError - err("Unable to find #{app.app_spec.name} #{app.app_spec.version} installed as a gem") - err("You must install the top-level app as a gem before calling app-bundler") - usage_and_exit! - end - end - end - - def verify_deps_are_accessible - gems.each do |g| - begin - app = App.new(bundle_path, bin_path, g) - app.verify_deps_are_accessible! - rescue InaccessibleGemsInLockfile => e - err(e.message) - exit 1 - end end end def run gems.each do |g|