Sha256: ffa5aeeb75fd9f53469adafb97f3991a611277f5815384e283ca8451eb2800d0
Contents?: true
Size: 1.08 KB
Versions: 1
Compression:
Stored size: 1.08 KB
Contents
require 'albacore/albacoremodel' require 'albacore/config/docuconfig' class Docu include AlbacoreModel include 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
albacore-0.2.0.preview1 | lib/albacore/docu.rb |