Class: Moku::Task::SetCurrent

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

Overview

Symlink current to the passed, deployed release.

Instance Method Summary collapse

Methods inherited from Task

#to_s

Instance Method Details

#call(release) ⇒ Object


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

def call(release)
  release.run(
    Sites::Scope.all,
    "rm -f #{release.app_path} && ln -s #{release.deploy_path} #{release.app_path}"
  )
end