Class: Nbuild::InstallUtilCmd

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

Instance Method Summary collapse

Methods inherited from Cmd

#execute, #execute_in

Constructor Details

#initialize(params = {}) ⇒ InstallUtilCmd

Returns a new instance of InstallUtilCmd.



5
6
7
8
# File 'lib/nbuild/install_util_cmd.rb', line 5

def initialize params={}
  @path = ENV['INSTALL_UTIL_HOME'] || 'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727'
  @params = params
end

Instance Method Details

#commandObject



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

def command
  install_switch = @params[:install] ? '-i' : '-u' 
  "\"#{@path}\\installutil.EXE\" #{install_switch} \"#{@params[:assembly]}\""
end