lib/elecksee/ephemeral.rb in elecksee-1.0.4 vs lib/elecksee/ephemeral.rb in elecksee-1.0.6

- old
+ new

@@ -60,10 +60,10 @@ attr_reader :ephemeral_binds def initialize(args={}) configure!(args) @cli = args[:cli] - @path = Dir.mktmpdir(File.join(lxc_dir, original)) + @path = command("mktemp -d -p #{lxc_dir} #{original}-XXXXXXXXXXXX", :sudo => true).stdout.strip @name = File.basename(@path) @hostname = @name.gsub(%r{[^A-Za-z0-9\-]}, '') @ephemeral_binds = [] @lxc = nil end