lib/capistrano/spy/tasks/spy.cap in capistrano-spy-0.1.4 vs lib/capistrano/spy/tasks/spy.cap in capistrano-spy-0.1.5
- old
+ new
@@ -23,9 +23,18 @@
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
\ No newline at end of file