Class: FIR::CLI

Inherits:
Thor show all
Defined in:
lib/fir/cli.rb

Instance Method Summary collapse

Instance Method Details

#build_apk(*args) ⇒ Object



70
71
72
73
74
# File 'lib/fir/cli.rb', line 70

def build_apk(*args)
  prepare :build_apk

  FIR.build_apk(*args, options)
end

#build_ipa(*args) ⇒ Object



41
42
43
44
45
# File 'lib/fir/cli.rb', line 41

def build_ipa(*args)
  prepare :build_ipa

  FIR.build_ipa(*args, options)
end

#help(command = nil, subcommand = false) ⇒ Object



158
159
160
# File 'lib/fir/cli.rb', line 158

def help(command = nil, subcommand = false)
  super
end

#info(*args) ⇒ Object



79
80
81
82
83
# File 'lib/fir/cli.rb', line 79

def info(*args)
  prepare :info

  FIR.info(*args, options)
end

#login(*args) ⇒ Object



109
110
111
112
113
114
# File 'lib/fir/cli.rb', line 109

def (*args)
  prepare :login

  token = options[:token] || args.first || ask('Please enter your fir.im API Token:', :white, echo: true)
  FIR.(token)
end

#mapping(*args) ⇒ Object



135
136
137
138
139
# File 'lib/fir/cli.rb', line 135

def mapping(*args)
  prepare :mapping

  FIR.mapping(*args, options)
end

#meObject



117
118
119
120
121
# File 'lib/fir/cli.rb', line 117

def me
  prepare :me

  FIR.me
end

#publish(*args) ⇒ Object



101
102
103
104
105
# File 'lib/fir/cli.rb', line 101

def publish(*args)
  prepare :publish

  FIR.publish(*args, options)
end

#upgradeObject



143
144
145
146
147
148
# File 'lib/fir/cli.rb', line 143

def upgrade
  prepare :upgrade

  say '✈ Upgrade fir-cli (use `gem install fir-cli --no-ri --no-rdoc`)'
  say `gem install fir-cli --no-ri --no-rdoc`
end

#versionObject



152
153
154
# File 'lib/fir/cli.rb', line 152

def version
  say "✈ fir-cli #{FIR::VERSION}"
end