Sha256: fb3d7e8770908076a5586dcdc391b3435595609a4897bde0d69f57f453434545

Contents?: true

Size: 1.05 KB

Versions: 39

Compression:

Stored size: 1.05 KB

Contents

module Blue
  class Os
    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
    )

    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 git@github.com || true"
            end
          end
        end
      end
    end
  end
end

if Capistrano::Configuration.instance
  Blue::Os.load(Capistrano::Configuration.instance)
end

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
blue-0.2.7 lib/capistrano/os.rb
blue-0.2.6 lib/capistrano/os.rb
blue-0.2.5 lib/capistrano/os.rb
blue-0.2.3 lib/capistrano/os.rb
blue-0.2.2 lib/capistrano/os.rb
blue-0.2.1 lib/capistrano/os.rb
blue-0.2.0 lib/capistrano/os.rb
blue-0.1.9 lib/capistrano/os.rb
blue-0.1.8 lib/capistrano/os.rb
blue-0.1.7 lib/capistrano/os.rb
blue-0.1.6 lib/capistrano/os.rb
blue-0.1.5 lib/capistrano/os.rb
blue-0.1.4 lib/capistrano/os.rb
blue-0.1.3 lib/capistrano/os.rb
blue-0.1.2 lib/capistrano/os.rb
blue-0.1.1 lib/capistrano/os.rb
blue-0.1.pre lib/capistrano/os.rb
blue-0.0.23 lib/capistrano/os.rb
blue-0.0.22 lib/capistrano/os.rb
blue-0.0.21 lib/capistrano/os.rb