Module: EacRubyUtils::Envs::Command::Concat

Defined in:
lib/eac_ruby_utils/envs/command/concat.rb

Instance Method Summary collapse

Instance Method Details

#concat(operator, other_command) ⇒ Object



9
10
11
12
13
# File 'lib/eac_ruby_utils/envs/command/concat.rb', line 9

def concat(operator, other_command)
  duplicate_by_extra_options(concat: ::EacRubyUtils::Struct.new(
    operator: operator, command: other_command
  ))
end

#or(other_command) ⇒ Object



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

def or(other_command)
  concat('||', other_command)
end

#pipe(other_command) ⇒ Object



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

def pipe(other_command)
  concat('|', other_command)
end