Class: Kamal::Commands::Builder
- Inherits:
-
Base
- Object
- Base
- Kamal::Commands::Builder
show all
- Includes:
- Clone
- Defined in:
- lib/kamal/commands/builder.rb
Defined Under Namespace
Modules: Clone
Classes: Base, Cloud, Hybrid, Local, Pack, Remote
Constant Summary
Constants inherited
from Base
Kamal::Commands::Base::DOCKER_HEALTH_STATUS_FORMAT
Instance Attribute Summary
Attributes inherited from Base
#config
Instance Method Summary
collapse
Methods included from Clone
#clone, #clone_reset_steps, #clone_revision, #clone_status, #escaped_build_directory, #escaped_root
Methods inherited from Base
#container_id_for, #ensure_docker_installed, #initialize, #make_directory, #make_directory_for, #remove_directory, #remove_file, #run_over_ssh
Instance Method Details
#cloud ⇒ Object
51
52
53
|
# File 'lib/kamal/commands/builder.rb', line 51
def cloud
@cloud ||= Kamal::Commands::Builder::Cloud.new(config)
end
|
#hybrid ⇒ Object
43
44
45
|
# File 'lib/kamal/commands/builder.rb', line 43
def hybrid
@hybrid ||= Kamal::Commands::Builder::Hybrid.new(config)
end
|
#local ⇒ Object
39
40
41
|
# File 'lib/kamal/commands/builder.rb', line 39
def local
@local ||= Kamal::Commands::Builder::Local.new(config)
end
|
#name ⇒ Object
15
16
17
|
# File 'lib/kamal/commands/builder.rb', line 15
def name
target.class.to_s.remove("Kamal::Commands::Builder::").underscore.inquiry
end
|
#pack ⇒ Object
47
48
49
|
# File 'lib/kamal/commands/builder.rb', line 47
def pack
@pack ||= Kamal::Commands::Builder::Pack.new(config)
end
|
#remote ⇒ Object
35
36
37
|
# File 'lib/kamal/commands/builder.rb', line 35
def remote
@remote ||= Kamal::Commands::Builder::Remote.new(config)
end
|
#target ⇒ Object
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
# File 'lib/kamal/commands/builder.rb', line 19
def target
if remote?
if local?
hybrid
else
remote
end
elsif pack?
pack
elsif cloud?
cloud
else
local
end
end
|