Module: Boson::Scientist::MoreScientist

Included in:
Boson::Scientist
Defined in:
lib/boson/more_scientist.rb

Instance Method Summary collapse

Instance Method Details

#analyzeObject



39
40
41
42
43
44
45
46
# File 'lib/boson/more_scientist.rb', line 39

def analyze(*)
  super
rescue OptionCommand::CommandArgumentError
  run_pretend_option(@args ||= [])
  return if !@global_options[:pretend] &&
    run_verbose_help(option_command, @original_args)
  raise unless @global_options[:pretend]
end

#during_analyze(&block) ⇒ Object



34
35
36
37
# File 'lib/boson/more_scientist.rb', line 34

def during_analyze(&block)
  run_pretend_option(@args)
  super unless @global_options[:pretend]
end