Class: Bake::Blocks::Docu
- Inherits:
-
Object
- Object
- Bake::Blocks::Docu
- Includes:
- HasExecuteCommand
- Defined in:
- lib/blocks/docu.rb
Instance Attribute Summary
Attributes included from HasExecuteCommand
Instance Method Summary collapse
- #clean ⇒ Object
- #execute ⇒ Object
-
#initialize(config, tcs) ⇒ Docu
constructor
A new instance of Docu.
Methods included from HasExecuteCommand
Constructor Details
#initialize(config, tcs) ⇒ Docu
Returns a new instance of Docu.
8 9 10 11 12 |
# File 'lib/blocks/docu.rb', line 8 def initialize(config, tcs) @config = config # Bake::Metamodel::CommandLine @commandLine = tcs[:DOCU] @projectDir = config.get_project_dir end |
Instance Method Details
#clean ⇒ Object
23 24 25 26 |
# File 'lib/blocks/docu.rb', line 23 def clean # nothing to do here return true end |
#execute ⇒ Object
14 15 16 17 18 19 20 21 |
# File 'lib/blocks/docu.rb', line 14 def execute if @commandLine.empty? Bake.formatter.printInfo("No documentation command specified", @config) else return executeCommand(@commandLine) end return true end |