Sha256: 0975344dfead74cc432ed55ccf6bc099b329a2413f2dd03907391275fe7eee0b

Contents?: true

Size: 315 Bytes

Versions: 10

Compression:

Stored size: 315 Bytes

Contents

desc "execute command on all servers"
task :remote_execute, :command do |_task, args|
  raise ArgumentError, 'remote_execute task requires an argument' unless args[:command]

  on roles(:all) do |host|
    info args[:command] if fetch(:log_level) == :debug
    info "#{host}:\n#{capture(args[:command])}"
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
dlss-capistrano-4.4.1 lib/dlss/capistrano/tasks/remote_execute.rake
dlss-capistrano-4.4.0 lib/dlss/capistrano/tasks/remote_execute.rake
dlss-capistrano-4.3.1 lib/dlss/capistrano/tasks/remote_execute.rake
dlss-capistrano-4.3.0 lib/dlss/capistrano/tasks/remote_execute.rake
dlss-capistrano-4.2.1 lib/dlss/capistrano/tasks/remote_execute.rake
dlss-capistrano-4.2.0 lib/dlss/capistrano/tasks/remote_execute.rake
dlss-capistrano-4.1.2 lib/dlss/capistrano/tasks/remote_execute.rake
dlss-capistrano-4.1.1 lib/dlss/capistrano/tasks/remote_execute.rake
dlss-capistrano-4.1.0 lib/dlss/capistrano/tasks/remote_execute.rake
dlss-capistrano-4.0.0 lib/dlss/capistrano/tasks/remote_execute.rake