Class: Cuber::Commands::Deploy
- Inherits:
-
Object
- Object
- Cuber::Commands::Deploy
show all
- Includes:
- Utils
- Defined in:
- lib/cuber/commands/deploy.rb
Instance Method Summary
collapse
Methods included from Utils
#kubectl, #kubeget, #render
Constructor Details
#initialize(options) ⇒ Deploy
5
6
7
|
# File 'lib/cuber/commands/deploy.rb', line 5
def initialize options
@options = options
end
|
Instance Method Details
#execute ⇒ Object
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
# File 'lib/cuber/commands/deploy.rb', line 9
def execute
if @options[:release]
print_step 'Deploying a past release'
else
checkout
set_release_name
if @options[:buildpacks]
pack
else
build
push
end
end
configure
apply
rollout
end
|