Class: NDepend
- Inherits:
-
Object
- Object
- NDepend
- Includes:
- Albacore::RunCommand, Albacore::Task
- Defined in:
- lib/albacore/ndepend.rb
Instance Attribute Summary collapse
-
#project_file ⇒ Object
Returns the value of attribute project_file.
Attributes included from Albacore::RunCommand
Attributes included from Logging
Instance Method Summary collapse
- #check_command ⇒ Object
- #create_parameters ⇒ Object
- #execute ⇒ Object
-
#initialize ⇒ NDepend
constructor
A new instance of NDepend.
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 ⇒ NDepend
Returns a new instance of NDepend.
9 10 11 12 |
# File 'lib/albacore/ndepend.rb', line 9 def initialize() super() update_attributes Albacore.configuration.ndepend.to_hash end |
Instance Attribute Details
#project_file ⇒ Object
Returns the value of attribute project_file.
7 8 9 |
# File 'lib/albacore/ndepend.rb', line 7 def project_file @project_file end |
Instance Method Details
#check_command ⇒ Object
27 28 29 30 31 |
# File 'lib/albacore/ndepend.rb', line 27 def check_command return true if @project_file 'A ndepend project file is required' false end |
#create_parameters ⇒ Object
21 22 23 24 25 |
# File 'lib/albacore/ndepend.rb', line 21 def create_parameters params = [] params << File.(@project_file) params end |
#execute ⇒ Object
14 15 16 17 18 19 |
# File 'lib/albacore/ndepend.rb', line 14 def execute return unless check_command result = run_command @command, create_parameters.join(" ") = 'Command Failed. See Build Log For Detail' if !result end |