Top Level Namespace
Defined Under Namespace
Classes: Iuid
Instance Method Summary collapse
- #create(options) ⇒ Object
- #delete(options) ⇒ Object
- #get(options) ⇒ Object
- #miss(what) ⇒ Object
- #set(options) ⇒ Object
Instance Method Details
#create(options) ⇒ Object
27 28 29 30 31 32 33 |
# File 'bin/iuid', line 27 def create() miss('category') unless [:category] Iuid.new(.delete(:config_file)).create( .delete(:name), .delete(:category) ) end |
#delete(options) ⇒ Object
48 49 50 51 52 |
# File 'bin/iuid', line 48 def delete() Iuid.new(.delete(:config_file)).delete( .delete(:name) ) end |
#get(options) ⇒ Object
35 36 37 38 39 |
# File 'bin/iuid', line 35 def get() Iuid.new(.delete(:config_file)).get( .delete(:name) ) end |
#miss(what) ⇒ Object
54 55 56 57 |
# File 'bin/iuid', line 54 def miss(what) STDERR.puts "Missing #{what}, exiting..." exit 1 end |