Class: Vx::Builder::Script::Base
Instance Attribute Summary collapse
Instance Method Summary
collapse
#trace_sh_command
Instance Attribute Details
#app ⇒ Object
Returns the value of attribute app
5
6
7
|
# File 'lib/vx/builder/script/base.rb', line 5
def app
@app
end
|
Instance Method Details
#deploy? ⇒ Boolean
49
50
51
|
# File 'lib/vx/builder/script/base.rb', line 49
def deploy?
env.task.deploy?
end
|
#do_after_deploy(env) {|env.after_deploy| ... } ⇒ Object
41
42
43
|
# File 'lib/vx/builder/script/base.rb', line 41
def do_after_deploy(env)
yield env.after_deploy
end
|
#do_announce(env) {|env.announce| ... } ⇒ Object
25
26
27
|
# File 'lib/vx/builder/script/base.rb', line 25
def do_announce(env)
yield env.announce
end
|
#do_before_deploy(env) {|env.before_deploy| ... } ⇒ Object
37
38
39
|
# File 'lib/vx/builder/script/base.rb', line 37
def do_before_deploy(env)
yield env.before_deploy
end
|
#do_before_install(env) {|env.before_install| ... } ⇒ Object
29
30
31
|
# File 'lib/vx/builder/script/base.rb', line 29
def do_before_install(env)
yield env.before_install
end
|
#do_cache_key(env) {|env.cache_key| ... } ⇒ Object
9
10
11
|
# File 'lib/vx/builder/script/base.rb', line 9
def do_cache_key(env)
yield env.cache_key
end
|
#do_cached_directories(env) ⇒ Object
19
20
21
22
23
|
# File 'lib/vx/builder/script/base.rb', line 19
def do_cached_directories(env)
if env.source.cached_directories != false
yield env.cached_directories
end
end
|
#do_deploy(env) {|env.deploy| ... } ⇒ Object
45
46
47
|
# File 'lib/vx/builder/script/base.rb', line 45
def do_deploy(env)
yield env.deploy
end
|
#do_install(env) {|env.install| ... } ⇒ Object
33
34
35
|
# File 'lib/vx/builder/script/base.rb', line 33
def do_install(env)
yield env.install
end
|
#do_script(env) ⇒ Object
13
14
15
16
17
|
# File 'lib/vx/builder/script/base.rb', line 13
def do_script(env)
if env.source.script.empty?
yield env.script
end
end
|