Class: RubyNative::CLI
- Inherits:
-
Object
- Object
- RubyNative::CLI
- Defined in:
- lib/ruby_native/cli.rb,
lib/ruby_native/cli/login.rb,
lib/ruby_native/cli/deploy.rb,
lib/ruby_native/cli/preview.rb,
lib/ruby_native/cli/credentials.rb,
lib/ruby_native/cli/screenshots.rb
Defined Under Namespace
Classes: Credentials, Deploy, Login, Preview, Screenshots
Class Method Summary collapse
Class Method Details
.start(argv) ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
# File 'lib/ruby_native/cli.rb', line 9 def self.start(argv) command = argv.shift case command when "deploy" RubyNative::CLI::Deploy.new(argv).run when "preview" RubyNative::CLI::Preview.new(argv).run when "screenshots" RubyNative::CLI::Screenshots.new(argv).run when "login" RubyNative::CLI::Login.new(argv).run when "logout" RubyNative::CLI::Credentials.clear puts "Logged out of Ruby Native." else puts "Usage: ruby_native <command>" puts "" puts "Commands:" puts " deploy Trigger an iOS build" puts " login Authenticate with Ruby Native" puts " logout Remove stored credentials" puts " preview Start a tunnel and display a QR code" puts " screenshots Capture web screenshots for App Store images" end end |