Class: Kubes::CLI
- Inherits:
-
Command
show all
- Defined in:
- lib/kubes/cli.rb,
lib/kubes/cli/get.rb,
lib/kubes/cli/new.rb,
lib/kubes/cli/base.rb,
lib/kubes/cli/exec.rb,
lib/kubes/cli/help.rb,
lib/kubes/cli/init.rb,
lib/kubes/cli/logs.rb,
lib/kubes/cli/apply.rb,
lib/kubes/cli/build.rb,
lib/kubes/cli/clean.rb,
lib/kubes/cli/prune.rb,
lib/kubes/cli/delete.rb,
lib/kubes/cli/deploy.rb,
lib/kubes/cli/docker.rb,
lib/kubes/cli/compile.rb,
lib/kubes/cli/describe.rb,
lib/kubes/cli/sequence.rb
Defined Under Namespace
Modules: Help
Classes: Apply, Base, Build, Clean, Compile, Delete, Deploy, Describe, Docker, Exec, Get, Init, Logs, New, Prune, Sequence
Instance Method Summary
collapse
Methods inherited from Command
alter_command_description, check_project!, command_help, dispatch, exit_on_failure?, website
Instance Method Details
#apply(role = nil, resource = nil) ⇒ Object
41
42
43
|
# File 'lib/kubes/cli.rb', line 41
def apply(role=nil, resource=nil)
Apply.new(options.merge(role: role, resource: resource)).run
end
|
#clean ⇒ Object
48
49
50
|
# File 'lib/kubes/cli.rb', line 48
def clean
Clean.new(options).run
end
|
#compile ⇒ Object
55
56
57
|
# File 'lib/kubes/cli.rb', line 55
def compile
Compile.new(options).run
end
|
#completion(*params) ⇒ Object
127
128
129
|
# File 'lib/kubes/cli.rb', line 127
def completion(*params)
Completer.new(CLI, *params).run
end
|
#completion_script ⇒ Object
#delete(role = nil, resource = nil) ⇒ Object
63
64
65
|
# File 'lib/kubes/cli.rb', line 63
def delete(role=nil, resource=nil)
Delete.new(options.merge(role: role, resource: resource)).run
end
|
#deploy(role = nil, resource = nil) ⇒ Object
71
72
73
|
# File 'lib/kubes/cli.rb', line 71
def deploy(role=nil, resource=nil)
Deploy.new(options.merge(role: role, resource: resource)).run
end
|
#describe(role = nil, resource = nil) ⇒ Object
79
80
81
|
# File 'lib/kubes/cli.rb', line 79
def describe(role=nil, resource=nil)
Describe.new(options.merge(role: role, resource: resource)).run
end
|
#exec(*cmd) ⇒ Object
89
90
91
|
# File 'lib/kubes/cli.rb', line 89
def exec(*cmd)
Exec.new(options.merge(cmd: cmd)).run
end
|
#get(role = nil, resource = nil) ⇒ Object
99
100
101
|
# File 'lib/kubes/cli.rb', line 99
def get(role=nil, resource=nil)
Get.new(options.merge(role: role, resource: resource)).run
end
|
#logs(*cmd) ⇒ Object
110
111
112
|
# File 'lib/kubes/cli.rb', line 110
def logs(*cmd)
Logs.new(options.merge(cmd: cmd)).run
end
|
#prune ⇒ Object
117
118
119
|
# File 'lib/kubes/cli.rb', line 117
def prune
Prune.new(options).run
end
|
#version ⇒ Object
138
139
140
|
# File 'lib/kubes/cli.rb', line 138
def version
puts VERSION
end
|