Class: TRMNLP::CLI

Inherits:
Thor
  • Object
show all
Defined in:
lib/trmnlp/cli.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.default_bindObject



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

Returns:

  • (Boolean)


15
# File 'lib/trmnlp/cli.rb', line 15

def self.exit_on_failure? = true

Instance Method Details

#buildObject



20
21
22
# File 'lib/trmnlp/cli.rb', line 20

def build
  Commands::Build.new(options).call
end

#clone(name, id) ⇒ Object



36
37
38
# File 'lib/trmnlp/cli.rb', line 36

def clone(name, id)
  Commands::Clone.new(options).call(name, id)
end

#init(name) ⇒ Object



31
32
33
# File 'lib/trmnlp/cli.rb', line 31

def init(name)
  Commands::Init.new(options).call(name)
end

#loginObject



25
26
27
# File 'lib/trmnlp/cli.rb', line 25

def 
  Commands::.new(options).call
end

#pullObject



44
45
46
# File 'lib/trmnlp/cli.rb', line 44

def pull
  Commands::Pull.new(options).call
end

#pushObject



52
53
54
# File 'lib/trmnlp/cli.rb', line 52

def push
  Commands::Push.new(options).call
end

#serveObject



59
60
61
# File 'lib/trmnlp/cli.rb', line 59

def serve
  Commands::Serve.new(options).call
end

#versionObject



64
65
66
# File 'lib/trmnlp/cli.rb', line 64

def version
  puts VERSION
end