Class: Caliph::PrereqChain

Inherits:
CommandChain show all
Defined in:
lib/caliph/command-chain.rb

Instance Attribute Summary

Attributes inherited from CommandChain

#commands

Attributes inherited from CommandLine

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

Instance Method Summary collapse

Methods inherited from CommandChain

#add, #command_environment, #copy_stream_to, #initialize, #name, #redirect_from, #redirect_to, #valid?

Methods included from DefineOp

included

Methods inherited from CommandLine

#copy_stream_to, emit_recording, #execute, #from, #initialize, #must_succeed!, #options_composition, #original_execute, #redirect_both, #redirect_from, #redirect_stderr, #redirect_stdin, #redirect_stdout, #redirect_to, #run, #run_as_replacement, #run_detached, #run_in_background, #set_env, #string_format, #succeeds?, #valid?

Constructor Details

This class inherits a constructor from Caliph::CommandChain

Instance Method Details

#commandObject



61
62
63
# File 'lib/caliph/command-chain.rb', line 61

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