Class: FIR::CLI

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

Instance Method Summary collapse

Instance Method Details

#build_apk(*args) ⇒ Object



76
77
78
79
80
# File 'lib/fir/cli.rb', line 76

def build_apk(*args)
  prepare :build_apk

  FIR.build_apk(*args, options)
end

#build_ipa(*args) ⇒ Object



45
46
47
48
49
# File 'lib/fir/cli.rb', line 45

def build_ipa(*args)
  prepare :build_ipa

  FIR.build_ipa(*args, options)
end

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



168
169
170
# File 'lib/fir/cli.rb', line 168

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

#info(*args) ⇒ Object



85
86
87
88
89
# File 'lib/fir/cli.rb', line 85

def info(*args)
  prepare :info

  FIR.info(*args, options)
end

#login(*args) ⇒ Object



119
120
121
122
123
124
# File 'lib/fir/cli.rb', line 119

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



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

def mapping(*args)
  prepare :mapping

  FIR.mapping(*args, options)
end

#meObject



127
128
129
130
131
# File 'lib/fir/cli.rb', line 127

def me
  prepare :me

  FIR.me
end

#publish(*args) ⇒ Object



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

def publish(*args)
  prepare :publish

  FIR.publish(*args, options)
end

#upgradeObject



153
154
155
156
157
158
# File 'lib/fir/cli.rb', line 153

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



162
163
164
# File 'lib/fir/cli.rb', line 162

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