Trim .local from hostname

This commit is contained in:
Henrik Lissner 2014-06-21 04:08:08 -04:00
parent b25d44d66a
commit 9a1837dbd7

View file

@ -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"