Method: Clamp::Command#initialize

Defined in:
lib/clamp/command.rb

#initialize(invocation_path, context = {}) ⇒ Command

Create a command execution.

Parameters:

  • invocation_path (String)

    the path used to invoke the command

  • context (Hash) (defaults to: {})

    additional data the command may need



28
29
30
31
# File 'lib/clamp/command.rb', line 28

def initialize(invocation_path, context = {})
  @invocation_path = invocation_path
  @context = context
end