lib/bundler/alive/cli.rb in bundler-alive-0.1.4 vs lib/bundler/alive/cli.rb in bundler-alive-0.1.5

- old
+ new

@@ -14,19 +14,18 @@ class CLI < ::Thor default_task :check map "--version" => :version desc "check [DIR]", "Checks the Gemfile.lock" + method_option :ignore, type: :array, aliases: "-i", default: [] method_option :gemfile_lock, type: :string, aliases: "-G", default: "Gemfile.lock" - method_option :result, type: :string, aliases: "-r", - default: "result.toml" + method_option :config, type: :string, aliases: "-c", default: ".bundler-alive.yml" def check(_dir = Dir.pwd) extend Reportable report = check_by_doctor - report.save_as_file(options[:result]) print_report(report) exit_status = report.result.all_alive? ? 0 : 1 exit exit_status end @@ -38,10 +37,10 @@ private def check_by_doctor doctor = begin - Doctor.new(options[:gemfile_lock], options[:result]) + Doctor.new(options[:gemfile_lock], options[:config], options[:ignore]) rescue Bundler::GemfileLockNotFound exit 1 end doctor.diagnose