Class: EacRubyUtils::Envs::CompositeCommand

Inherits:
Object
  • Object
show all
Includes:
BaseCommand
Defined in:
lib/eac_ruby_utils/envs/composite_command.rb

Instance Method Summary collapse

Methods included from BaseCommand

#command

Instance Method Details

#bash_commandString

Returns:



27
28
29
30
# File 'lib/eac_ruby_utils/envs/composite_command.rb', line 27

def bash_command
  ['set', '-euo', 'pipefail', OPERATOR_BEFORE, left_command.command, operator,
   right_command.command].join(' ')
end

#command_line_without_env(_options = {}) ⇒ String

Returns:



22
23
24
# File 'lib/eac_ruby_utils/envs/composite_command.rb', line 22

def command_line_without_env(_options = {})
  ::Shellwords.join(['bash', '-c', bash_command])
end

#envEacRubyUtils::Envs::BaseEnv



19
# File 'lib/eac_ruby_utils/envs/composite_command.rb', line 19

delegate :env, to: :left_command