class Shuttle::Ruby

Public Instance Methods

deploy() click to toggle source
# File lib/shuttle/deployment/ruby.rb, line 18
def deploy
  setup
  update_code
  checkout_code
  bundle_install
  thin_restart
  link_shared_paths
  link_release
end
setup() click to toggle source
Calls superclass method Shuttle::Strategy#setup
# File lib/shuttle/deployment/ruby.rb, line 6
def setup
  unless ruby_installed?
    error "Please install Ruby first"
  end
  
  unless bundle_installed?
    install_bundler 
  end

  super
end

Private Instance Methods

ruby_installed?() click to toggle source
# File lib/shuttle/deployment/ruby.rb, line 36
def ruby_installed?
  ssh.run("which ruby").success?
end