Class: Blue::Os
- Inherits:
-
Object
- Object
- Blue::Os
- Defined in:
- lib/capistrano/os.rb
Constant Summary collapse
- PACKAGES =
%w( g++ gcc make libc6-dev patch openssl ca-certificates libreadline6 \ libreadline6-dev curl zlib1g zlib1g-dev libssl-dev libyaml-dev \ libxml2-dev libxslt1-dev autoconf libc6-dev \ libgdbm-dev libncurses5-dev automake libtool bison pkg-config libffi-dev )
Class Method Summary collapse
Class Method Details
.load(capistrano_config) ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
# File 'lib/capistrano/os.rb', line 10 def self.load(capistrano_config) capistrano_config.load do namespace :blue do namespace :setup do desc "Install required gems" task :os do sudo "apt-get install -y #{Blue::Os::PACKAGES.join(' ')}" # Capistrano isn't smart enough to set this up correctly path = "/u/apps/#{application}" sudo "chown -R #{user} #{path}" # Grab github's fingerprint # Oh yea, this is dangerous run "ssh -o StrictHostKeyChecking=no [email protected] || true" end end end end end |