Class: Jets::Commands::Main
- Inherits:
-
Base
show all
- Defined in:
- lib/jets/commands/main.rb
Instance Method Summary
collapse
Methods inherited from Base
autocomplete, banner, dispatch, eager_load!, help_list, inherited, klass_from_namespace, namespace_from_class, namespaced_commands, perform, subclasses
Instance Method Details
#build ⇒ Object
11
12
13
|
# File 'lib/jets/commands/main.rb', line 11
def build
Build.new(options).run
end
|
#call(function_name, payload = '') ⇒ Object
75
76
77
|
# File 'lib/jets/commands/main.rb', line 75
def call(function_name, payload='')
Call.new(function_name, payload, options).run
end
|
#console ⇒ Object
55
56
57
|
# File 'lib/jets/commands/main.rb', line 55
def console
Console.run
end
|
#dbconsole ⇒ Object
61
62
63
|
# File 'lib/jets/commands/main.rb', line 61
def dbconsole
Dbconsole.start(*args)
end
|
#delete ⇒ Object
30
31
32
|
# File 'lib/jets/commands/main.rb', line 30
def delete
Delete.new(options).run
end
|
#deploy(environment = nil) ⇒ Object
Note the environment is here to trick the Thor parser to allowing an environment parameter. It is not actually set here. It is set earlier in cli.rb: set_jets_env_for_deploy_command!
#generate(generator, *args) ⇒ Object
81
82
83
|
# File 'lib/jets/commands/main.rb', line 81
def generate(generator, *args)
Jets::Generator.invoke(generator, *args)
end
|
#server ⇒ Object
38
39
40
41
42
43
44
45
|
# File 'lib/jets/commands/main.rb', line 38
def server
o = options
command = "bundle exec shotgun --port #{o[:port]} --host #{o[:host]}"
puts "=> #{command}".colorize(:green)
puts Jets::Booter.message
system(command)
end
|
#status ⇒ Object
87
88
89
|
# File 'lib/jets/commands/main.rb', line 87
def status
Jets::Cfn::Status.new(options).run
end
|
#version ⇒ Object
99
100
101
|
# File 'lib/jets/commands/main.rb', line 99
def version
puts Jets.version
end
|