Sha256: 7925e899180455c78de279dc5a946c882fa370e06d3aebd5e2ce9bc8fcbc677f
Contents?: true
Size: 1.05 KB
Versions: 1
Compression:
Stored size: 1.05 KB
Contents
namespace :show do desc "list all yml config files" task :yml do on roles(:app) do with_debug_verbosity do execute "ls #{shared_path}/config/*.yml" end end end desc "show shared config yml file" task :config, [:file] do |_task, args| on roles(:app) do with_debug_verbosity do execute "cat #{shared_path}/config/#{args.file}.yml" end end end desc "show running processes of service" task :running, [:service] do |_task, args| on roles(:app) do with_debug_verbosity do execute "ps aux | grep #{args.service}" end end end desc "show memory info (MemTotal, MemFree, Cached, SwapCached, SwapTotal, SwapFree)" task :mem do on roles(:app) do with_debug_verbosity do execute "egrep 'Mem|Cache|Swap' /proc/meminfo" end end end end def with_debug_verbosity output_verbosity = SSHKit.config.output_verbosity begin SSHKit.config.output_verbosity = Logger::DEBUG yield ensure SSHKit.config.output_verbosity = output_verbosity end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
capistrano-spy-0.1.5 | lib/capistrano/spy/tasks/spy.cap |