lib/beaker/host/unix/exec.rb
# Create the provided directory structure on the host
# @param [String] dir The directory structure to create on the host
# @return [Boolean] True, if directory construction succeeded, otherwise False
Create the provided directory structure on the host
Create the provided directory structure on the host
def mkdir_p dir
    cmd = "mkdir -p \"#{dir}\""
    result = exec(Beaker::Command.new(cmd), :acceptable_exit_codes => [0, 1])
    result.exit_code == 0
  end
def mkdir_p dir cmd = "mkdir -p \"#{dir}\"" result = exec ( Beaker :: Command . new ( cmd ) , :acceptable_exit_codes => [ 0 , 1 ] ) result . exit_code == 0 end
Create the provided directory structure on the host
Create the provided directory structure on the host
True, if directory construction succeeded, otherwise False
True if directory construction succeeded otherwise False
Boolean
dir
dir The directory structure to create on the host
dir The directory structure to create on the host