lib/cumuli/tasks/cumuli.rake in cumuli-0.2.1 vs lib/cumuli/tasks/cumuli.rake in cumuli-0.3.0

- old
+ new

@@ -1,13 +1,21 @@ -namespace :cumuli do - require_relative "../ps" +require_relative "../ps" +require_relative "../cli/remote_command" +require_relative "../cli/commander" +require_relative "../cli/terminal" +namespace :cumuli do desc "kill the processes showing up in the nimbus:ps task" task :kill do Cumuli::PS.new.kill end desc "look at processes likely related to cumuli" task :ps do puts Cumuli::PS.new.matching + end + + desc "run a remote command with the right ruby: rake cumuli:remote ../my_app rake db:migrate" + task :remote do |command| + Cumuli::CLI::RemoteCommand.new(ARGV).perform end end