Class: FIR::CLI

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

Instance Method Summary collapse

Instance Method Details

#build_ipa(*args) ⇒ Object



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

def build_ipa *args
  prepare :build_ipa

  FIR.build_ipa(*args, options)
end

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



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

def help command = nil, subcommand = false
  super
end

#info(*args) ⇒ Object



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

def info *args
  prepare :info

  FIR.info(*args, options)
end

#login(*args) ⇒ Object



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

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



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

def publish *args
  prepare :publish

  FIR.publish(*args, options)
end

#upgradeObject



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

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



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

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