Sha256: 6d1dea3492c653f712bcaacd0a3eaf2c2760fab9fc1738b195528b8363bc779d

Contents?: true

Size: 663 Bytes

Versions: 26

Compression:

Stored size: 663 Bytes

Contents

require 'blocks/compile'

module Bake
  module Blocks
    class Docu
      include HasExecuteCommand
      
      def initialize(config, tcs)
        @config = config # Bake::Metamodel::CommandLine
        @commandLine = tcs[:DOCU]
        @projectDir = config.get_project_dir
      end
      
      def execute
        if @commandLine.empty?
          Bake.formatter.printInfo("No documentation command specified", @config)
        else
          return executeCommand(@commandLine)
        end
        return true
      end
      
      def clean
        # nothing to do here
        return true
      end
      
    end
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
bake-toolkit-2.20.4 lib/blocks/docu.rb
bake-toolkit-2.20.3 lib/blocks/docu.rb
bake-toolkit-2.20.2 lib/blocks/docu.rb
bake-toolkit-2.20.1 lib/blocks/docu.rb
bake-toolkit-2.19.2 lib/blocks/docu.rb
bake-toolkit-2.19.1 lib/blocks/docu.rb
bake-toolkit-2.19.0 lib/blocks/docu.rb
bake-toolkit-2.18.0 lib/blocks/docu.rb
bake-toolkit-2.17.4 lib/blocks/docu.rb
bake-toolkit-2.17.3 lib/blocks/docu.rb
bake-toolkit-2.17.2 lib/blocks/docu.rb
bake-toolkit-2.17.1 lib/blocks/docu.rb
bake-toolkit-2.16.1 lib/blocks/docu.rb
bake-toolkit-2.15.0 lib/blocks/docu.rb
bake-toolkit-2.14.0 lib/blocks/docu.rb
bake-toolkit-2.13.1 lib/blocks/docu.rb
bake-toolkit-2.13.0 lib/blocks/docu.rb
bake-toolkit-2.12.2 lib/blocks/docu.rb
bake-toolkit-2.12.1 lib/blocks/docu.rb
bake-toolkit-2.12.0 lib/blocks/docu.rb