Sha256: cbbb5bb4ab7f7f39e9242b2b6d720a91391abc6c6ec737117a648b6701e0e565
Contents?: true
Size: 873 Bytes
Versions: 13
Compression:
Stored size: 873 Bytes
Contents
namespace :utilities do desc "Report Uptimes" task :uptime do on roles(:all) do |host| info "Host #{host} (#{host.roles.to_a.join(', ')}):\t#{capture(:uptime)}" end end desc "Install common pacakges" task :common_packages do on roles(:app) do |host| execute :sudo, "apt-get -y update" execute :sudo, "apt-get -y install python-software-properties htop iftop iotop mytop sysstat screen curl subversion git-core rsync" end end desc 'Install Ruby' task :install_ruby do invoke :'utilities:common_packages' on roles(:app) do |host| execute :curl, "-Lo- https://gist.github.com/parasquid/5624732/raw/install-ruby-2-ubuntu.sh | bash" end end desc 'Install the Bundler gem (server-wide)' task :install_bundler do on roles(:app) do |host| execute :sudo, 'gem install bundler' end end end
Version data entries
13 entries across 13 versions & 1 rubygems