lib/flare_up/cli.rb in flare-up-0.7 vs lib/flare_up/cli.rb in flare-up-0.8
- old
+ new
@@ -35,22 +35,22 @@
rescue ArgumentError => e
Emitter.error(e.message)
CLI.bailout(1)
end
- Emitter.store_options(boot_options)
- Boot.boot(boot_options)
+ OptionStore.store_options(boot_options)
+
+ Boot.boot
end
def self.env_validator(options, option_name, env_variable_name)
options[option_name] ||= ENVWrap.get(env_variable_name)
return if options[option_name]
raise ArgumentError, "One of either the --#{option_name} option or the ENV['#{env_variable_name}'] must be set"
end
- # TODO: Extract
def self.bailout(exit_code)
- exit(1)
+ exit(exit_code)
end
end
end
\ No newline at end of file