Sha256: 866c5e9ece05008e98f6e3f9818d4669c74ed7939abb0c38b95aac6645c7b3e9

Contents?: true

Size: 375 Bytes

Versions: 3

Compression:

Stored size: 375 Bytes

Contents

module Docman
  module Builders
    class CommonBuilder < Builder

      register_builder :common

      def dir
        if File.directory? @info['full_build_path']
          FileUtils.rm_r(@info['full_build_path']) if self.repo? @info['full_build_path']
        end
        FileUtils::mkdir_p @info['full_build_path']
        @info['build_path']
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
docman-0.0.5 lib/docman/builders/common_builder.rb
docman-0.0.4 lib/docman/builders/common_builder.rb
docman-0.0.3 lib/docman/builders/common_builder.rb