scripts/webapp.rb in standup-0.3.13 vs scripts/webapp.rb in standup-0.3.14
- old
+ new
@@ -1,11 +1,12 @@
Standup.script :node do
self.default_params = {
:rails_env => 'production',
- :name => 'webapp'
+ :name => 'webapp',
+ :server_name => 'localhost'
}
-
+
def run
install_package 'git-core'
install_gem 'bundler'
install_package params.additional_packages if params.additional_packages.present?
@@ -43,9 +44,17 @@
return scripts.postgresql if scripts.setup.has_script? 'postgresql'
return scripts.mysql if scripts.setup.has_script? 'mysql'
nil
end
+ def server_names
+ params.server_names || params.server_name
+ end
+
+ def server_name
+ server_names.split(' ').first
+ end
+
protected
def ensure_github_access
return unless exec('ssh -o StrictHostKeyChecking=no git@github.com') =~ /Permission denied \(publickey\)/