lib/kitchen/provisioner/shell.rb
# Creates a data directory in the sandbox directory, if a data directory
# can be found and copies in the tree.
#
# @api private
Creates a data directory in the sandbox directory, if a data directory
can be found and copies in the tree.
Creates a data directory in the sandbox directory if a data directory can be found and copies in the tree .
def prepare_data
        return unless config[:data_path]
        info("Preparing data")
        debug("Using data from #{config[:data_path]}")
        tmpdata_dir = File.join(sandbox_path, "data")
        FileUtils.mkdir_p(tmpdata_dir)
        FileUtils.cp_r(Util.list_directory(config[:data_path]), tmpdata_dir)
      end
def prepare_data return unless config [ :data_path ] info ( "Preparing data" ) debug ( "Using data from #{config[:data_path]}" ) tmpdata_dir = File . join ( sandbox_path , "data" ) FileUtils . mkdir_p ( tmpdata_dir ) FileUtils . cp_r ( Util . list_directory ( config [ :data_path ] ) , tmpdata_dir ) end
Creates a data directory in the sandbox directory, if a data directory
can be found and copies in the tree.
Creates a data directory in the sandbox directory if a data directory can be found and copies in the tree .
api
None