lib/builderator/util.rb in builderator-0.3.10 vs lib/builderator/util.rb in builderator-0.3.11

- old
+ new

@@ -1,5 +1,7 @@ +require 'pathname' + module Builderator module Util class << self def to_array(arg) arg.is_a?(Array) ? arg : [arg] @@ -41,10 +43,10 @@ def asg @asg ||= Aws::AutoScaling::Client.new(:region => region) end def working_dir(relative = '.') - File.expand_path(relative, Dir.pwd) + Pathname.pwd.join(relative).expand_path end end end end