lib/kitchen/provisioner/nodes.rb in kitchen-nodes-0.7.0 vs lib/kitchen/provisioner/nodes.rb in kitchen-nodes-0.8.0
- old
+ new
@@ -1,6 +1,6 @@
-# -*- encoding: utf-8 -*-
+# -*- encoding: utf-8 -*-
#
# Author:: Matt Wrock (<matt@mattwrock.com>)
#
# Copyright (C) 2015, Matt Wrock
#
@@ -110,10 +110,10 @@
}
end
# rubocop:enable Metrics/AbcSize
def node_dir
- File.join(config[:test_base_path], 'nodes')
+ config[:nodes_path] || File.join(config[:test_base_path], 'nodes')
end
def node_file
File.join(node_dir, "#{instance.name}.json")
end