Sha256: 03be8ea6a58ab16da3413ab41d3844a89f608fd5671ac482e99b86192b0fff44
Contents?: true
Size: 1.05 KB
Versions: 11
Compression:
Stored size: 1.05 KB
Contents
require 'albacore/albacoretask' require 'albacore/config/docuconfig' class Docu include Albacore::Task include Albacore::RunCommand include Configuration::Docu attr_accessor :output_location attr_array :assemblies, :xml_files def initialize(command=nil) @assemblies = [] @xml_files = [] @output_location = "" super() update_attributes docu.to_hash @command = command unless command.nil? end def execute if @assemblies.empty? fail_with_message 'Docu Failed. No assemblies specified' return end command_params = get_command_parameters success = run_command 'Docu', command_params.join(' ') fail_with_message 'Docu Failed. See Build Log For Detail' unless success end private def get_command_parameters command_params = [] command_params << @assemblies.join(' ') unless @assemblies.nil? command_params << @xml_files.join(' ') unless @xml_files.nil? command_params << " --output=\"#{@output_location}\" " unless @output_location.empty? command_params end end
Version data entries
11 entries across 11 versions & 1 rubygems