Exception: CouchShell::NoSuchCommand

Inherits:
ShellUserError show all
Defined in:
lib/couch-shell/exceptions.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(command_name) ⇒ NoSuchCommand

Returns a new instance of NoSuchCommand.



55
56
57
# File 'lib/couch-shell/exceptions.rb', line 55

def initialize(command_name)
  @command_name = command_name
end

Instance Attribute Details

#command_nameObject (readonly)

Returns the value of attribute command_name.



53
54
55
# File 'lib/couch-shell/exceptions.rb', line 53

def command_name
  @command_name
end

Instance Method Details

#messageObject



59
60
61
# File 'lib/couch-shell/exceptions.rb', line 59

def message
  "No such command: #@command_name"
end