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.47 lib/docman/builders/dir_builder.rb
docman-0.0.46 lib/docman/builders/dir_builder.rb
docman-0.0.45 lib/docman/builders/dir_builder.rb
docman-0.0.44 lib/docman/builders/dir_builder.rb
docman-0.0.43 lib/docman/builders/dir_builder.rb
docman-0.0.42 lib/docman/builders/dir_builder.rb
docman-0.0.41 lib/docman/builders/dir_builder.rb
docman-0.0.40 lib/docman/builders/dir_builder.rb
docman-0.0.39 lib/docman/builders/dir_builder.rb
docman-0.0.38 lib/docman/builders/dir_builder.rb
docman-0.0.37 lib/docman/builders/dir_builder.rb
docman-0.0.36 lib/docman/builders/dir_builder.rb
docman-0.0.35 lib/docman/builders/dir_builder.rb
docman-0.0.34 lib/docman/builders/dir_builder.rb
docman-0.0.33 lib/docman/builders/dir_builder.rb
docman-0.0.32 lib/docman/builders/dir_builder.rb
docman-0.0.31 lib/docman/builders/dir_builder.rb
docman-0.0.30 lib/docman/builders/dir_builder.rb
docman-0.0.29 lib/docman/builders/dir_builder.rb
docman-0.0.28 lib/docman/builders/dir_builder.rb