Class: FIR::CLI

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

Instance Method Summary collapse

Instance Method Details

#build_ipa(*args) ⇒ Object



33
34
35
36
37
# File 'lib/fir/cli.rb', line 33

def build_ipa *args
  prepare :build_ipa

  FIR.build_ipa(*args, options)
end

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



83
84
85
# File 'lib/fir/cli.rb', line 83

def help command = nil, subcommand = false
  super
end

#info(*args) ⇒ Object



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

def info *args
  prepare :info

  FIR.info(*args, options)
end

#login(*args) ⇒ Object



60
61
62
63
64
65
# File 'lib/fir/cli.rb', line 60

def  *args
  prepare :login

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

#publish(*args) ⇒ Object



52
53
54
55
56
# File 'lib/fir/cli.rb', line 52

def publish *args
  prepare :publish

  FIR.publish(*args, options)
end

#upgradeObject



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

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



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

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