Sha256: 45891f00c59abc5d26b17b9164d6b4c8611cd879457589dc3016078d0db09c85
Contents?: true
Size: 560 Bytes
Versions: 16
Compression:
Stored size: 560 Bytes
Contents
module Vx module Builder class Script Services = Struct.new(:app) do ALIASES = { 'rabbitmq' => 'rabbitmq-server' } include Helper::TraceShCommand def call(env) env.source.services.each do |srv| srv = ALIASES[srv] || srv env.init << trace_sh_command("sudo service #{srv} start") end unless env.source.services.empty? env.init << trace_sh_command("sleep 3") end app.call(env) end end end end end
Version data entries
16 entries across 16 versions & 1 rubygems