Class: Xipai::CLI

Inherits:
Thor
  • Object
show all
Defined in:
lib/xipai/cli.rb

Instance Method Summary collapse

Instance Method Details

#lotteryObject



61
62
63
# File 'lib/xipai/cli.rb', line 61

def lottery()
  finalize Xipai.lets_do_this!(:lottery, options)
end

#orderObject



35
36
37
# File 'lib/xipai/cli.rb', line 35

def order()
  finalize Xipai.lets_do_this!(:order, options)
end

#pairObject



74
75
76
# File 'lib/xipai/cli.rb', line 74

def pair()
  finalize Xipai.lets_do_this!(:pair, options)
end

#replayObject



21
22
23
24
25
# File 'lib/xipai/cli.rb', line 21

def replay()
  yamldata = File.read(options[:"replay_yaml"])
  $stdout.puts yamldata if options[:verbose]
  finalize Xipai.replay!(yamldata, options)
end

#teamObject



48
49
50
# File 'lib/xipai/cli.rb', line 48

def team()
  finalize Xipai.lets_do_this!(:team, options)
end

#versionObject



13
14
15
# File 'lib/xipai/cli.rb', line 13

def version
  $stdout.puts Xipai::VERSION
end