Class: Nbuild::InstallUtilCmd
Instance Method Summary collapse
- #command ⇒ Object
-
#initialize(params = {}) ⇒ InstallUtilCmd
constructor
A new instance of InstallUtilCmd.
Methods inherited from Cmd
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
#command ⇒ Object
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 |