Sha256: d6949f129fa051913e6b4415868b9de9a49f8c4684d658584e9127e1418271f4
Contents?: true
Size: 784 Bytes
Versions: 1
Compression:
Stored size: 784 Bytes
Contents
module Shuttle class Ruby < Shuttle::Deploy include Shuttle::Support::Bundler include Shuttle::Support::Thin def setup unless ruby_installed? error "Please install Ruby first" end unless bundle_installed? install_bundler end super end def deploy setup update_code checkout_code bundle_install thin_restart link_shared_paths link_release end def link_shared_paths ssh.run("mkdir -p #{release_path('tmp')}") ssh.run("ln -s #{shared_path('pids')} #{release_path('tmp/pids')}") ssh.run("ln -s #{shared_path('log')} #{release_path('log')}") end private def ruby_installed? ssh.run("which ruby").success? end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
shuttle-deploy-0.2.0.beta1 | lib/shuttle/deployment/ruby.rb |