Class: EacRubyUtils::Envs::CompositeCommand
- Includes:
- BaseCommand
- Defined in:
- lib/eac_ruby_utils/envs/composite_command.rb
Instance Method Summary collapse
- #bash_command ⇒ String
- #command_line_without_env(_options = {}) ⇒ String
- #env ⇒ EacRubyUtils::Envs::BaseEnv
Methods included from BaseCommand
Instance Method Details
#bash_command ⇒ String
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
22 23 24 |
# File 'lib/eac_ruby_utils/envs/composite_command.rb', line 22 def command_line_without_env( = {}) ::Shellwords.join(['bash', '-c', bash_command]) end |
#env ⇒ EacRubyUtils::Envs::BaseEnv
19 |
# File 'lib/eac_ruby_utils/envs/composite_command.rb', line 19 delegate :env, to: :left_command |