Sha256: 981430c31d18c1073567e67a9d947ec0d4924f1d7e71332a8148170aa3c38db1
Contents?: true
Size: 738 Bytes
Versions: 1
Compression:
Stored size: 738 Bytes
Contents
require 'albacore/albacoretask' class NDepend include AlbacoreTask include RunCommand attr_accessor :project_file def initialize() super() update_attributes Albacore.configuration.ndepend.to_hash end def execute return unless check_command result = run_command @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_command return true if @project_file fail_with_message 'A ndepend project file is required' return false end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
albacore-0.2.0.preview2 | lib/albacore/ndepend.rb |