Class: Ppl::Command::Org

Inherits:
Attribute show all
Defined in:
lib/ppl/command/org.rb

Instance Attribute Summary

Attributes inherited from Attribute

#attribute, #list_format, #show_format

Attributes inherited from Application::Command

#storage

Instance Method Summary collapse

Methods inherited from Attribute

#execute

Methods inherited from Application::Command

add_property, #execute

Constructor Details

#initializeOrg

Returns a new instance of Org.



6
7
8
# File 'lib/ppl/command/org.rb', line 6

def initialize
  @attribute = :organizations
end

Instance Method Details

#options(parser, options) ⇒ Object



10
11
12
13
14
15
# File 'lib/ppl/command/org.rb', line 10

def options(parser, options)
  parser.banner = "usage: ppl org <contact> [<organization>]"
  parser.on("-d", "--delete", "delete organization") do
    options[:delete] = true
  end
end