Class: Vx::Builder::ScriptBuilder::Base

Inherits:
Struct
  • Object
show all
Includes:
Helper::TraceShCommand
Defined in:
lib/vx/builder/script_builder/base.rb

Direct Known Subclasses

Clojure, Deploy, Env, Java, Ruby, Scala, Services

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Helper::TraceShCommand

#trace_sh_command

Instance Attribute Details

#appObject

Returns the value of attribute app

Returns:

  • (Object)

    the current value of app



5
6
7
# File 'lib/vx/builder/script_builder/base.rb', line 5

def app
  @app
end

Instance Method Details

#do_after_deploy(env) ⇒ Object



49
50
51
52
53
# File 'lib/vx/builder/script_builder/base.rb', line 49

def do_after_deploy(env)
  if env.source.deploy_modules?
    yield env.after_success
  end
end

#do_announce(env) {|env.announce| ... } ⇒ Object

Yields:

  • (env.announce)


25
26
27
# File 'lib/vx/builder/script_builder/base.rb', line 25

def do_announce(env)
  yield env.announce
end

#do_before_deploy(env) ⇒ Object



43
44
45
46
47
# File 'lib/vx/builder/script_builder/base.rb', line 43

def do_before_deploy(env)
  if env.source.deploy_modules?
    yield env.before_script
  end
end

#do_before_install(env) {|env.before_install| ... } ⇒ Object

Yields:

  • (env.before_install)


29
30
31
# File 'lib/vx/builder/script_builder/base.rb', line 29

def do_before_install(env)
  yield env.before_install
end

#do_cache_key(env) {|env.cache_key| ... } ⇒ Object

Yields:

  • (env.cache_key)


9
10
11
# File 'lib/vx/builder/script_builder/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_builder/base.rb', line 19

def do_cached_directories(env)
  if env.source.cached_directories != false
    yield env.cached_directories
  end
end

#do_deploy_script(env) ⇒ Object



37
38
39
40
41
# File 'lib/vx/builder/script_builder/base.rb', line 37

def do_deploy_script(env)
  if env.source.deploy_modules?
    yield env.script
  end
end

#do_install(env) {|env.install| ... } ⇒ Object

Yields:

  • (env.install)


33
34
35
# File 'lib/vx/builder/script_builder/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_builder/base.rb', line 13

def do_script(env)
  if env.source.script.empty? && !env.source.deploy_modules?
    yield env.script
  end
end