Trim .local from hostname
This commit is contained in:
parent
b25d44d66a
commit
9a1837dbd7
|
@ -2,7 +2,7 @@ require_relative 'lib/output'
|
||||||
|
|
||||||
desc "Provision the node"
|
desc "Provision the node"
|
||||||
task :init,:node do |t,args|
|
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
|
# TODO: chop off the *.local in osx hostnames
|
||||||
|
|
||||||
path = "#{File.dirname(__FILE__)}/node/#{args.node}.rb"
|
path = "#{File.dirname(__FILE__)}/node/#{args.node}.rb"
|
||||||
|
|
Loading…
Reference in a new issue