Sha256: cdaae7871b7688e665ba2b60210b4957e0eefacd66f8324939382a8aa5b7272d
Contents?: true
Size: 493 Bytes
Versions: 66
Compression:
Stored size: 493 Bytes
Contents
Capistrano::Configuration.instance(:must_exist).load do namespace :monit do desc "Get the status of your mongrels" task :status, :roles => :app do @monit_output ||= { } sudo "/usr/bin/monit status" do |channel, stream, data| @monit_output[channel[:server].to_s] ||= [ ] @monit_output[channel[:server].to_s].push(data.chomp) end @monit_output.each do |k,v| puts "#{k} -> #{'*'*55}" puts v.join("\n") end end end end
Version data entries
66 entries across 66 versions & 6 rubygems