Class: TRMNLP::CLI
- Inherits:
-
Thor
- Object
- Thor
- TRMNLP::CLI
- Defined in:
- lib/trmnlp/cli.rb
Class Method Summary collapse
Instance Method Summary collapse
- #build ⇒ Object
- #login ⇒ Object
- #pull(plugin_settings_id = nil) ⇒ Object
- #push(plugin_settings_id = nil) ⇒ Object
- #serve ⇒ Object
- #version ⇒ Object
Class Method Details
.exit_on_failure? ⇒ Boolean
13 |
# File 'lib/trmnlp/cli.rb', line 13 def self.exit_on_failure? = true |
Instance Method Details
#build ⇒ Object
16 17 18 |
# File 'lib/trmnlp/cli.rb', line 16 def build Commands::Build.new().call end |
#login ⇒ Object
21 22 23 |
# File 'lib/trmnlp/cli.rb', line 21 def login Commands::Login.new().call end |
#pull(plugin_settings_id = nil) ⇒ Object
28 29 30 |
# File 'lib/trmnlp/cli.rb', line 28 def pull(plugin_settings_id = nil) Commands::Pull.new().call(plugin_settings_id) end |
#push(plugin_settings_id = nil) ⇒ Object
35 36 37 |
# File 'lib/trmnlp/cli.rb', line 35 def push(plugin_settings_id = nil) Commands::Push.new().call(plugin_settings_id) end |
#serve ⇒ Object
42 43 44 |
# File 'lib/trmnlp/cli.rb', line 42 def serve Commands::Serve.new().call end |
#version ⇒ Object
47 48 49 |
# File 'lib/trmnlp/cli.rb', line 47 def version puts VERSION end |