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

.exit_on_failure?Boolean

Returns:

  • (Boolean)


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

def self.exit_on_failure? = true

Instance Method Details

#buildObject



18
19
20
# File 'lib/trmnlp/cli.rb', line 18

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

#clone(name, id) ⇒ Object



34
35
36
# File 'lib/trmnlp/cli.rb', line 34

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

#init(name) ⇒ Object



29
30
31
# File 'lib/trmnlp/cli.rb', line 29

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

#loginObject



23
24
25
# File 'lib/trmnlp/cli.rb', line 23

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

#pullObject



42
43
44
# File 'lib/trmnlp/cli.rb', line 42

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

#pushObject



50
51
52
# File 'lib/trmnlp/cli.rb', line 50

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

#serveObject



57
58
59
# File 'lib/trmnlp/cli.rb', line 57

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

#versionObject



62
63
64
# File 'lib/trmnlp/cli.rb', line 62

def version
  puts VERSION
end