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
- #clone(name, id) ⇒ Object
- #init(name) ⇒ Object
- #login ⇒ Object
- #pull ⇒ Object
- #push ⇒ Object
- #serve ⇒ Object
- #version ⇒ Object
Class Method Details
.default_bind ⇒ Object
17 |
# File 'lib/trmnlp/cli.rb', line 17 def self.default_bind = File.exist?('/.dockerenv') ? '0.0.0.0' : '127.0.0.1' |
.exit_on_failure? ⇒ Boolean
15 |
# File 'lib/trmnlp/cli.rb', line 15 def self.exit_on_failure? = true |
Instance Method Details
#build ⇒ Object
20 21 22 |
# File 'lib/trmnlp/cli.rb', line 20 def build Commands::Build.new().call end |
#clone(name, id) ⇒ Object
36 37 38 |
# File 'lib/trmnlp/cli.rb', line 36 def clone(name, id) Commands::Clone.new().call(name, id) end |
#init(name) ⇒ Object
31 32 33 |
# File 'lib/trmnlp/cli.rb', line 31 def init(name) Commands::Init.new().call(name) end |
#login ⇒ Object
25 26 27 |
# File 'lib/trmnlp/cli.rb', line 25 def login Commands::Login.new().call end |
#pull ⇒ Object
44 45 46 |
# File 'lib/trmnlp/cli.rb', line 44 def pull Commands::Pull.new().call end |
#push ⇒ Object
52 53 54 |
# File 'lib/trmnlp/cli.rb', line 52 def push Commands::Push.new().call end |
#serve ⇒ Object
59 60 61 |
# File 'lib/trmnlp/cli.rb', line 59 def serve Commands::Serve.new().call end |
#version ⇒ Object
64 65 66 |
# File 'lib/trmnlp/cli.rb', line 64 def version puts VERSION end |