Class: Mattock::PrereqChain

Inherits:
CommandChain show all
Defined in:
lib/mattock/command-line.rb

Instance Attribute Summary

Attributes inherited from CommandChain

#commands

Attributes inherited from CommandLine

#env, #executable, #name, #options, #output_stream, #redirections

Instance Method Summary collapse

Methods inherited from CommandChain

#add, #command_environment, #initialize, #name

Methods inherited from CommandLine

#background, #collect_result, #complete, #copy_stream_to, define_chain_op, define_op, emit_recording, execute, #execute, #initialize, #kill_process, #must_succeed!, #options_composition, #original_execute, #redirect_from, #redirect_stderr, #redirect_stdin, #redirect_stdout, #redirect_to, #replace_us, #report, #run, #set_env, #spawn_process, #spin_off, #string_format, #succeeds?, #verbose

Constructor Details

This class inherits a constructor from Mattock::CommandChain

Instance Method Details

#commandObject



246
247
248
# File 'lib/mattock/command-line.rb', line 246

def command
  @commands.map{|cmd| cmd.command}.join(" && ")
end