Browse files

allow hostname to be set via parameter

  • Loading branch information...
1 parent db8f3b0 commit e1311e5f35445321eaad25993637f5814855a01b @thewoolleyman committed Sep 16, 2009
Showing with 5 additions and 1 deletion.
  1. +5 −1 setup_ci.rb
View
6 setup_ci.rb
@@ -10,9 +10,13 @@ def self.setup
cruise_home = ENV['CRUISE_HOME'] || "#{ENV['HOME']}/ccrb"
cruise_branch = ENV['CRUISE_BRANCH'] || "git://github.com/thoughtworks/cruisecontrol.rb.git"
# cruise_tag = ENV['CRUISE_TAG']
- cruise_tag = ENV['CRUISE_TAG'] if ENV['CRUISE_TAG']
+ cruise_tag = ENV['CRUISE_TAG']
cinabox_dir = File.expand_path(File.dirname(__FILE__))
cruise_daemon_template = ENV['CRUISE_DAEMON_TEMPLATE'] || "#{cruise_home}/daemon/cruise"
+ hostname = ENV['HOSTNAME']
+
+ # set hostname
+ run "sudo echo '#{hostname}' > /etc/hostname" if hostname
# Build/download dir
build_dir = ENV['BUILD_DIR'] || "#{ENV['HOME']}/build"

0 comments on commit e1311e5

Please sign in to comment.