Class: FreeRange::CLI
- Inherits:
-
Thor
- Object
- Thor
- FreeRange::CLI
- Defined in:
- lib/freerange.rb
Defined Under Namespace
Classes: Pair
Instance Method Summary collapse
Instance Method Details
#members ⇒ Object
41 42 43 |
# File 'lib/freerange.rb', line 41 def members MEMBERS.keys.sort.each {|name| puts name } end |
#pair(author) ⇒ Object
47 48 49 50 51 52 53 |
# File 'lib/freerange.rb', line 47 def pair() p = Pair.new() set 'user.name' => p.name, 'user.email' => p.email, 'pair.initials' => p.initials rescue => e puts e. exit(-1) end |
#unpair ⇒ Object
56 57 58 |
# File 'lib/freerange.rb', line 56 def unpair unset 'user.name', 'user.email', 'pair.initials' end |