Sha256: fe9e7be13bc459162e20b79cdac4805ee7b7b2ecf62b87257ef146e77c139cc3

Contents?: true

Size: 638 Bytes

Versions: 93

Compression:

Stored size: 638 Bytes

Contents

module Docman
  module Builders
    class DirBuilder < Builder

      register_builder :dir_builder

      def execute
        if File.directory? @context['full_build_path']
          if GitUtil.repo? @context['full_build_path']
            log("Removed dir: #{@context['full_build_path']} because directory is git repo")
            FileUtils.rm_r(@context['full_build_path'])
          end
        end
        log("Created dir: #{@context['full_build_path']}")
        FileUtils::mkdir_p @context['full_build_path']
        @context['build_path']
      end

      def version
        @context['build_path']
      end

    end
  end
end

Version data entries

93 entries across 93 versions & 1 rubygems

Version Path
docman-0.0.87 lib/docman/builders/dir_builder.rb
docman-0.0.86 lib/docman/builders/dir_builder.rb
docman-0.0.85 lib/docman/builders/dir_builder.rb
docman-0.0.84 lib/docman/builders/dir_builder.rb
docman-0.0.83 lib/docman/builders/dir_builder.rb
docman-0.0.82 lib/docman/builders/dir_builder.rb
docman-0.0.81 lib/docman/builders/dir_builder.rb
docman-0.0.80 lib/docman/builders/dir_builder.rb
docman-0.0.79 lib/docman/builders/dir_builder.rb
docman-0.0.78 lib/docman/builders/dir_builder.rb
docman-0.0.77 lib/docman/builders/dir_builder.rb
docman-0.0.76 lib/docman/builders/dir_builder.rb
docman-0.0.75 lib/docman/builders/dir_builder.rb
docman-0.0.74 lib/docman/builders/dir_builder.rb
docman-0.0.73 lib/docman/builders/dir_builder.rb
docman-0.0.72 lib/docman/builders/dir_builder.rb
docman-0.0.71 lib/docman/builders/dir_builder.rb
docman-0.0.70 lib/docman/builders/dir_builder.rb
docman-0.0.69 lib/docman/builders/dir_builder.rb
docman-0.0.68 lib/docman/builders/dir_builder.rb