Class: Vx::Builder::ScriptBuilderV2::Services

Inherits:
Base
  • Object
show all
Defined in:
lib/vx/builder/script_builder_v2/services.rb

Constant Summary collapse

ALIASES =
{
  'rabbitmq' => 'rabbitmq-server'
}

Instance Attribute Summary

Attributes inherited from Base

#app

Instance Method Summary collapse

Methods inherited from Base

#deploy?, #do_after_deploy, #do_before_deploy, #do_before_script, #do_cache_key, #do_cached_directories, #do_database, #do_deploy_script, #do_install, #do_script

Instance Method Details

#call(env) ⇒ Object



11
12
13
14
15
16
17
18
19
20
# File 'lib/vx/builder/script_builder_v2/services.rb', line 11

def call(env)
  env.stage("init").tap do |e|
    srvs = env.source.services.map do |srv|
      srv = ALIASES[srv] || srv
    end
    e.add_task "services", srvs
  end

  app.call(env)
end