Module: Shellissimo::DSL::Macros

Defined in:
lib/shellissimo/dsl.rb

Instance Method Summary collapse

Instance Method Details

#command(name) {|command_builder| ... } ⇒ Object

Parameters:

  • name (String)

    Primary name for command

Yield Parameters:



21
22
23
24
25
# File 'lib/shellissimo/dsl.rb', line 21

def command(name)
  builder = CommandBuilder.new(name)
  yield builder
  add_command(builder.result)
end