Rudy is a development and deployment tool for Amazon EC2. Define infrastructure and processes using a powerful Ruby DSL* and Rudy takes care of the rest (like creating security groups and keypairs).
env :stage do # Define an environment
ami 'ami-e348af8a'
role :app do # Define a role
addresses '11.22.33.44' # Use elastic IPs
disks do # Define EBS volumes
path "/rudy/disk1" do
size 100
device "/dev/sdr"
end
end
end
end
startup do # $ rudy startup
adduser :rudy
authorize :rudy # Enable passwordless login
disks do
create "/rudy/disk1" # Create an EBS volume
end
remote :rudy do # Run remote SSH commands
mkdir :p, "great" # $ mkdir -p great
touch "great/scott" # $ touch great/scott
ls :l, :a # $ ls -l -a
end
end