Module: EacRubyUtils::Envs::BaseCommand::ExtraOptions

Defined in:
lib/eac_ruby_utils/envs/base_command/extra_options.rb

Instance Method Summary collapse

Instance Method Details

#extra_optionsActiveSupport::HashWithIndifferentAccess

Returns:

  • (ActiveSupport::HashWithIndifferentAccess)


12
13
14
# File 'lib/eac_ruby_utils/envs/base_command/extra_options.rb', line 12

def extra_options
  @extra_options ||= {}.with_indifferent_access
end

#status_result(status_code, result) ⇒ Object



16
17
18
# File 'lib/eac_ruby_utils/envs/base_command/extra_options.rb', line 16

def status_result(status_code, result)
  duplicate_by_extra_options(status_results: status_results.merge(status_code => result))
end