Module: EacRubyUtils::Envs::Command::ExtraOptions

Included in:
EacRubyUtils::Envs::Command
Defined in:
lib/eac_ruby_utils/envs/command/extra_options.rb

Instance Method Summary collapse

Instance Method Details

#chdir(dir) ⇒ Object


11
12
13
# File 'lib/eac_ruby_utils/envs/command/extra_options.rb', line 11

def chdir(dir)
  duplicate_by_extra_options(chdir: dir)
end

#envvar(name, value) ⇒ Object


15
16
17
# File 'lib/eac_ruby_utils/envs/command/extra_options.rb', line 15

def envvar(name, value)
  duplicate_by_extra_options(envvars: envvars.merge(name => value))
end

#pipe(other_command) ⇒ Object


23
24
25
# File 'lib/eac_ruby_utils/envs/command/extra_options.rb', line 23

def pipe(other_command)
  duplicate_by_extra_options(pipe: other_command)
end

#status_result(status_code, result) ⇒ Object


19
20
21
# File 'lib/eac_ruby_utils/envs/command/extra_options.rb', line 19

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