Sha256: 99dec2829473784ac6dd03aa15f112f3083510f747bb03b54a56d6d0c8f341d3
Contents?: true
Size: 740 Bytes
Versions: 4
Compression:
Stored size: 740 Bytes
Contents
require "albacore/support/albacore_helper" class NDepend extend AttrMethods include RunCommand include Logging include YAMLConfig attr_accessor :path_to_command, :project_file def initialize() super() end def run return unless check_comand result = run_command @path_to_command, create_parameters.join(" ") failure_message = 'Command Failed. See Build Log For Detail' fail_with_message failure_message if !result end def create_parameters params = [] params << File.expand_path(@project_file) return params end def check_comand return true if @project_file fail_with_message 'A ndepend project file is required' return false end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
albacore-0.1.5 | lib/albacore/ndepend.rb |
albacore-0.1.4 | lib/albacore/ndepend.rb |
albacore-0.1.3 | lib/albacore/ndepend.rb |
albacore-0.1.2 | lib/albacore/ndepend.rb |