From 9a1837dbd713207ad2e542174b293822e16f43ef Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sat, 21 Jun 2014 04:08:08 -0400 Subject: [PATCH] Trim .local from hostname --- rake/init.rake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rake/init.rake b/rake/init.rake index e0c6b5b0..cd5432b0 100644 --- a/rake/init.rake +++ b/rake/init.rake @@ -2,7 +2,7 @@ require_relative 'lib/output' desc "Provision the node" task :init,:node do |t,args| - args.with_defaults(:node => `hostname`.strip) + args.with_defaults(:node => `hostname`.gsub('.local', '').strip) # TODO: chop off the *.local in osx hostnames path = "#{File.dirname(__FILE__)}/node/#{args.node}.rb"