lib/omnibus/builder.rb
def mkdir(directory, options = {})
      build_commands << BuildCommand.new("mkdir `#{directory}'") do
        Dir.chdir(software.project_dir) do
          FileUtils.mkdir_p(directory, options)
        end
      end
    end
def mkdir(directory, options = {})
      build_commands << BuildCommand.new("mkdir `#{directory}'") do
        Dir.chdir(software.project_dir) do
          FileUtils.mkdir_p(directory, options)
        end
      end
    end
@!endgroup
 --------------------------------------------------

 @!group File system DSL methods

 The following DSL methods are available from within build blocks that
 mutate the file system.

 **These commands are run from inside {Software#project_dir}, so exercise
 good judgement when using relative paths!**
 --------------------------------------------------

 Make a directory at runtime. This method uses the equivalent of +mkdir -p+
 under the covers.

 @param [String] directory
   the name or path of the directory to create
 @param [Hash] options
   the list of options to pass to the underlying +FileUtils+ call

 @return (see #command)