3 ms·
https://github.com/seattlerb/rake-remote_task https://github.com/seattlerb/rake-remote_task is all you need if you use ruby. require 'rake/remote_task' se
by 1gor 13y ago
https://github.com/seattlerb/rake-remote_task 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
- danudey 13y agoState 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.