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

#executable, #name, #options

Instance Method Summary (collapse)

Methods inherited from CommandChain

#add, #initialize, #name

Methods inherited from CommandLine

#copy_stream_to, emit_recording, execute, #initialize, #must_succeed!, original_execute, #redirect_from, #redirect_stderr, #redirect_stdin, #redirect_stdout, #redirect_to, #run, #succeeds?, #verbose

Constructor Details

This class inherits a constructor from Mattock::CommandChain

Instance Method Details

- (Object) command



152
153
154
# File 'lib/mattock/command-line.rb', line 152

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