Method: CouchShell::CommandInfo#initialize

Defined in:
lib/couch-shell/plugin.rb

#initialize(opts) ⇒ CommandInfo

Returns a new instance of CommandInfo.



49
50
51
52
53
54
55
56
57
# File 'lib/couch-shell/plugin.rb', line 49

def initialize(opts)
  @name = opts[:name] or raise "name required"
  @tags = [@name].concat(opts[:tags] || [])
  @synopsis = opts[:synopsis]
  @doc_line = opts[:doc_line] or raise "doc_line required"
  @doc_text = opts[:doc_text]
  @execute_message = opts[:execute_message] or raise "execute_message required"
  @plugin = opts[:plugin] or raise "plugin required"
end