Sha256: 1e58a09c80c3fa2c74991eb59772be96f82a1e9b89f6bc84c570f10c961c2fb6
Contents?: true
Size: 688 Bytes
Versions: 2
Compression:
Stored size: 688 Bytes
Contents
Capistrano::Configuration.instance(:must_exist).load do def template(from, to) erb = File.read(File.expand_path("../templates/#{from}", __FILE__)) put ERB.new(erb).result(binding), to end def set_default(name, *args, &block) set(name, *args, &block) unless exists?(name) end namespace :deploy do desc "Install everything onto the server" task :install do run "#{sudo} bash -c 'echo UTC > /etc/timezone'" run "#{sudo} cp /usr/share/zoneinfo/UTC /etc/localtime" run "#{sudo} dpkg-reconfigure -f noninteractive tzdata" run "#{sudo} apt-get -y update" run "#{sudo} apt-get -y install python-software-properties" end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
cap_bootstrap-0.3.0 | lib/cap_bootstrap/recipes/base.rb |
cap_bootstrap-0.2 | lib/cap_bootstrap/recipes/base.rb |