class TddDeploy::SiteRvm
TddDeploy::SiteUser
¶ ↑
tests all hosts to make sure that the local user can log on as site_user
Public Instance Methods
test_bundle_prescence()
click to toggle source
# File lib/tdd_deploy/site_tests/site_rvm.rb, line 20 def test_bundle_prescence deploy_test_on_hosts_as self.site_user, self.app_hosts, /Bundler version/, "bundler should run" do 'source ~/.rvm/scripts/rvm ; bundle --version' end end
test_rvm()
click to toggle source
# File lib/tdd_deploy/site_tests/site_rvm.rb, line 8 def test_rvm deploy_test_on_hosts_as self.site_user, self.app_hosts, /RVM is the Ruby/, "rvm should be installed" do 'source ~/.rvm/scripts/rvm ; rvm' end end
test_rvm_current()
click to toggle source
# File lib/tdd_deploy/site_tests/site_rvm.rb, line 14 def test_rvm_current deploy_test_on_hosts_as self.site_user, self.app_hosts, /(ruby|jruby|rbx|ree)-\d\.\d\.\d/, "rvm current should display a ruby" do 'source ~/.rvm/scripts/rvm ; rvm current' end end