Class: Xipai::CLI
- Inherits:
-
Thor
- Object
- Thor
- Xipai::CLI
- Defined in:
- lib/xipai/cli.rb
Instance Method Summary collapse
Instance Method Details
#lottery ⇒ Object
61 62 63 |
# File 'lib/xipai/cli.rb', line 61 def lottery() finalize Xipai.lets_do_this!(:lottery, ) end |
#order ⇒ Object
35 36 37 |
# File 'lib/xipai/cli.rb', line 35 def order() finalize Xipai.lets_do_this!(:order, ) end |
#pair ⇒ Object
74 75 76 |
# File 'lib/xipai/cli.rb', line 74 def pair() finalize Xipai.lets_do_this!(:pair, ) end |
#replay ⇒ Object
21 22 23 24 25 |
# File 'lib/xipai/cli.rb', line 21 def replay() yamldata = File.read([:"replay_yaml"]) $stdout.puts yamldata if [:verbose] finalize Xipai.replay!(yamldata, ) end |
#team ⇒ Object
48 49 50 |
# File 'lib/xipai/cli.rb', line 48 def team() finalize Xipai.lets_do_this!(:team, ) end |