Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

https://github.com/seattlerb/rake-remote_task is all you need if you use ruby.

  require 'rake/remote_task'

  set :domain, 'abc.example.com'

  remote_task :foo do
    run "ls"
  end


State management is about a lot more than 'execute this command on a server' (which is discussed in the article). It's about creating a set of rules and performing idempotent actions.

If you're just running shell commands, it's easy to screw up and waste your time or break your server by accidentally having the same commands run twice.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: