Class: Docu
- Inherits:
-
Object
- Object
- Docu
- Includes:
- Albacore::RunCommand, Albacore::Task, Configuration::Docu
- Defined in:
- lib/albacore/docu.rb
Instance Attribute Summary collapse
-
#output_location ⇒ Object
Returns the value of attribute output_location.
Attributes included from Albacore::RunCommand
Attributes included from Logging
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(command = nil) ⇒ Docu
constructor
A new instance of Docu.
Methods included from Configuration::Docu
Methods included from Albacore::Configuration
Methods included from Albacore::RunCommand
Methods included from AttrMethods
Methods included from Albacore::Task
clean_dirname, create_rake_task, include_config, included
Methods included from UpdateAttributes
Methods included from YAMLConfig
#configure, #load_config_by_task_name
Methods included from Logging
#create_logger, #log_device=, #log_level, #log_level=
Methods included from Failure
Constructor Details
#initialize(command = nil) ⇒ Docu
Returns a new instance of Docu.
12 13 14 15 16 17 18 19 |
# File 'lib/albacore/docu.rb', line 12 def initialize(command=nil) @assemblies = [] @xml_files = [] @output_location = "" super() update_attributes docu.to_hash @command = command unless command.nil? end |
Instance Attribute Details
#output_location ⇒ Object
Returns the value of attribute output_location.
9 10 11 |
# File 'lib/albacore/docu.rb', line 9 def output_location @output_location end |
Instance Method Details
#execute ⇒ Object
21 22 23 24 25 26 27 28 29 30 31 |
# File 'lib/albacore/docu.rb', line 21 def execute if @assemblies.empty? 'Docu Failed. No assemblies specified' return end command_params = get_command_parameters success = run_command 'Docu', command_params.join(' ') 'Docu Failed. See Build Log For Detail' unless success end |