Module: Capistrano::Slacky::On
- Defined in:
- lib/capistrano/slacky/on.rb
Defined Under Namespace
Classes: Path
Class Method Summary collapse
Class Method Details
.on(within:, &block) ⇒ Object
20 21 22 23 24 25 26 |
# File 'lib/capistrano/slacky/on.rb', line 20 def on(within:, &block) role = ::Capistrano::Configuration.env.primary(:app) || ::Capistrano::Configuration.env.roles(:all).first ::Capistrano::DSL.on(role) do ::SSHKit::Backend.current.within(PATH_MAP.fetch(within).call, &block) end end |