Class: Perkins::Build::Shell::Cmd
- Defined in:
- lib/perkins/build/shell/node.rb
Instance Attribute Summary
Attributes inherited from Node
Instance Method Summary collapse
Methods inherited from Node
#escape, #initialize, #name, #to_s
Constructor Details
This class inherits a constructor from Perkins::Build::Shell::Node
Instance Method Details
#code ⇒ Object
31 32 33 34 35 36 37 |
# File 'lib/perkins/build/shell/node.rb', line 31 def code if opts.any? ['travis_cmd', escape(super), *opts].join(' ') else super end end |
#opts ⇒ Object
39 40 41 42 43 44 45 46 47 |
# File 'lib/perkins/build/shell/node.rb', line 39 def opts opts ||= [] opts << '--assert' if [:assert] opts << '--echo' if [:echo] opts << '--retry' if [:retry] opts << '--timing' if [:timing] opts << "--display #{escape([:echo])}" if [:echo].is_a?(String) opts end |