Class: Moku::Task::Enable

Inherits:
Task
  • Object
show all
Defined in:
lib/moku/task/enable.rb

Overview

Enable the release's systemd services on the target hosts.

Instance Method Summary collapse

Methods inherited from Task

#to_s

Instance Method Details

#call(release) ⇒ Object


12
13
14
15
16
# File 'lib/moku/task/enable.rb', line 12

def call(release)
  Sequence.for(release.systemd_services) do |service|
    release.run(Sites::Scope.all, "sudo systemctl enable #{service}")
  end
end