Class: Nbuild::NDependCmd
Instance Method Summary collapse
- #command ⇒ Object
-
#initialize(params = {}) ⇒ NDependCmd
constructor
A new instance of NDependCmd.
Methods inherited from Cmd
Constructor Details
#initialize(params = {}) ⇒ NDependCmd
Returns a new instance of NDependCmd.
5 6 7 8 9 |
# File 'lib/nbuild/ndepend_cmd.rb', line 5 def initialize params={} raise 'please create an environment variable NDEPEND_PATH to specify the location of your ndpend installation' unless ENV['NDEPEND_PATH'] @path = ENV['NDEPEND_PATH'] @params = params end |
Instance Method Details
#command ⇒ Object
11 12 13 |
# File 'lib/nbuild/ndepend_cmd.rb', line 11 def command "\"#{@path}\\NDepend.Console.exe\" \"#{@params[:project]}\"" end |