class Flappy::CLI
Public Instance Methods
archive_ipa(*args)
click to toggle source
# File lib/flappy/cli.rb, line 86 def archive_ipa(*args) prepare :archive_ipa Flappy.archive_ipa(*args, options) end
build_apk(*args)
click to toggle source
# File lib/flappy/cli.rb, line 38 def build_apk(*args) prepare :build_apk Flappy.build_apk(*args, options) end
build_ipa(*args)
click to toggle source
# File lib/flappy/cli.rb, line 80 def build_ipa(*args) prepare :build_ipa Flappy.build_ipa(*args, options) end
help(command = nil, subcommand = false)
click to toggle source
Calls superclass method
# File lib/flappy/cli.rb, line 120 def help(command = nil, subcommand = false) super end
invoke_command(command, *args)
click to toggle source
Calls superclass method
# File lib/flappy/cli.rb, line 125 def invoke_command(command, *args) logfile = options[:logfile].blank? ? STDOUT : options[:logfile] logfile = '/dev/null' if options[:quiet] Flappy.logger = Logger.new(logfile) Flappy.logger.level = options[:verbose] ? Logger::INFO : Logger::ERROR super end
publish(*args)
click to toggle source
# File lib/flappy/cli.rb, line 112 def publish(*args) prepare :publish Flappy.publish(*args, options) end
Private Instance Methods
prepare(task)
click to toggle source
# File lib/flappy/cli.rb, line 137 def prepare(task) if options.help? help(task.to_s) fail SystemExit end $DEBUG = true if ENV['DEBUG'] end