Class: Capistrano::Slacky::Command::CurrentRevision
- Inherits:
-
Object
- Object
- Capistrano::Slacky::Command::CurrentRevision
- Defined in:
- lib/capistrano/slacky/command/current_revision.rb
Class Method Summary collapse
Class Method Details
.call ⇒ Object
11 12 13 14 15 16 17 18 19 |
# File 'lib/capistrano/slacky/command/current_revision.rb', line 11 def self.call output = nil ::Capistrano::Slacky.on(within: :release) do output = ::SSHKit::Backend.current.capture(:cat, REVISION_FILE) end output end |