Method: Brief::DSL#command

Defined in:
lib/brief/dsl.rb

#command(name, options = {}, &block) ⇒ Object

Register a new command for this briefcase.

Pass the name of the command, options, and a block.

The block will get called with the briefcase, and any arguments

currently doesn’t accept any options



27
28
29
30
31
32
# File 'lib/brief/dsl.rb', line 27

def command(name, options={}, &block)
  Brief.commands[name.to_sym] = {
    options: options,
    handler: block
  }
end