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
Defined Under Namespace
Classes: Credentials, Deploy, Login, Preview
Class Method Summary collapse
Class Method Details
.start(argv) ⇒ Object
8 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 34 |
# File 'lib/ruby_native/cli.rb', line 8 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 "login" RubyNative::CLI::Login.new(argv).run when "logout" RubyNative::CLI::Credentials.clear puts "Logged out of Ruby Native." when "screenshots" warn "ruby_native screenshots was removed in 0.9.0." warn "Screenshots are now captured by rubynative.com against your deployed site." warn "See https://rubynative.com/docs/ship/screenshots for the new flow." exit 1 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" end end |