Exception: CouchShell::NoSuchCommandInPlugin

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(plugin_name, command_name) ⇒ NoSuchCommandInPlugin

Returns a new instance of NoSuchCommandInPlugin.



40
41
42
43
# File 'lib/couch-shell/exceptions.rb', line 40

def initialize(plugin_name, command_name)
  @plugin_name = plugin_name
  @command_name = command_name
end

Instance Attribute Details

#command_nameObject (readonly)

Returns the value of attribute command_name.



38
39
40
# File 'lib/couch-shell/exceptions.rb', line 38

def command_name
  @command_name
end

#plugin_nameObject (readonly)

Returns the value of attribute plugin_name.



37
38
39
# File 'lib/couch-shell/exceptions.rb', line 37

def plugin_name
  @plugin_name
end

Instance Method Details

#messageObject



45
46
47
# File 'lib/couch-shell/exceptions.rb', line 45

def message
  "Plugin #@plugin_name doesn't define a #@command_name command."
end