Method: Foreplay::Engine#execute
- Defined in:
- lib/foreplay/engine.rb
#execute(m) ⇒ Object
25 26 27 28 29 30 31 32 33 |
# File 'lib/foreplay/engine.rb', line 25 def execute(m) @mode = m puts "#{mode.capitalize}ing #{environment.dup.yellow} environment, "\ "#{explanatory_text(filters, 'role')}, #{explanatory_text(filters, 'server')}" actionable_roles.map { |role, instructions| threads(role, instructions) }.flatten.each(&:join) puts mode == :deploy ? 'Finished deployment' : 'Deployment configuration check was successful' end |