Module: Capistrano::DSL
- Defined in:
- lib/capistrano/datadog/v3.rb
Instance Method Summary collapse
Instance Method Details
#old_on ⇒ Object
33 |
# File 'lib/capistrano/datadog/v3.rb', line 33 alias old_on on |
#on(hosts, *args, &block) ⇒ Object
34 35 36 37 38 39 40 41 |
# File 'lib/capistrano/datadog/v3.rb', line 34 def on(hosts, *args, &block) old_on(hosts, *args) do |host| if Capistrano::Configuration.env.fetch(:datadog_record_hosts) Capistrano::Datadog.reporter.record_hostname(host) end self.instance_exec(host, &block) end end |