Class: Vx::Builder::ScriptBuilder::Base
Direct Known Subclasses
Cache, Clojure, Defaults, Deploy, Env, Go, Java, Nodejs, Parallel, Ruby, Rust, Scala, Services, Timeouts
Instance Attribute Summary collapse
Instance Method Summary
collapse
#vxvm_install
#trace_sh_command
Instance Attribute Details
#app ⇒ Object
Returns the value of attribute app
5
6
7
|
# File 'lib/vx/builder/script_builder/base.rb', line 5
def app
@app
end
|
Instance Method Details
#deploy?(env) ⇒ Boolean
59
60
61
|
# File 'lib/vx/builder/script_builder/base.rb', line 59
def deploy?(env)
env.source.deploy_modules?
end
|
#do_after_deploy(env) ⇒ Object
53
54
55
56
57
|
# File 'lib/vx/builder/script_builder/base.rb', line 53
def do_after_deploy(env)
if deploy?(env)
yield env.after_success
end
end
|
#do_announce(env) {|env.announce| ... } ⇒ Object
27
28
29
|
# File 'lib/vx/builder/script_builder/base.rb', line 27
def do_announce(env)
yield env.announce
end
|
#do_before_deploy(env) ⇒ Object
47
48
49
50
51
|
# File 'lib/vx/builder/script_builder/base.rb', line 47
def do_before_deploy(env)
if deploy?(env)
yield env.before_script
end
end
|
#do_before_install(env) {|env.before_install| ... } ⇒ Object
31
32
33
|
# File 'lib/vx/builder/script_builder/base.rb', line 31
def do_before_install(env)
yield env.before_install
end
|
#do_cache_key(env) {|env.cache_key| ... } ⇒ Object
11
12
13
|
# File 'lib/vx/builder/script_builder/base.rb', line 11
def do_cache_key(env)
yield env.cache_key
end
|
#do_cached_directories(env) ⇒ Object
21
22
23
24
25
|
# File 'lib/vx/builder/script_builder/base.rb', line 21
def do_cached_directories(env)
if env.source.cached_directories != false
yield env.cached_directories
end
end
|
#do_deploy_script(env) ⇒ Object
41
42
43
44
45
|
# File 'lib/vx/builder/script_builder/base.rb', line 41
def do_deploy_script(env)
if deploy?(env)
yield env.script
end
end
|
#do_install(env) ⇒ Object
35
36
37
38
39
|
# File 'lib/vx/builder/script_builder/base.rb', line 35
def do_install(env)
if env.source.install.empty?
yield env.install
end
end
|
#do_script(env) ⇒ Object
15
16
17
18
19
|
# File 'lib/vx/builder/script_builder/base.rb', line 15
def do_script(env)
if env.source.script.empty? && !env.source.deploy_modules?
yield env.script
end
end
|