Class: Nbuild::NDependCmd

Inherits:
Cmd
  • Object
show all
Defined in:
lib/nbuild/ndepend_cmd.rb

Instance Method Summary collapse

Methods inherited from Cmd

#execute, #execute_in

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

#commandObject



11
12
13
# File 'lib/nbuild/ndepend_cmd.rb', line 11

def command
  "\"#{@path}\\NDepend.Console.exe\" \"#{@params[:project]}\""
end