Method: Windows::Pkg#install_package
- Defined in:
- lib/beaker/host/windows/pkg.rb
#install_package(name, cmdline_args = '') ⇒ Object
14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/beaker/host/windows/pkg.rb', line 14 def install_package(name, cmdline_args = '') arch = identify_windows_architecture if arch == '64' rootdir = "c:\\\\cygwin64" cygwin = "setup-x86_64.exe" else #32 bit version rootdir = "c:\\\\cygwin" cygwin = "setup-x86.exe" end execute("#{cygwin} -q -n -N -d -R #{rootdir} -s http://cygwin.osuosl.org -P #{name} #{cmdline_args}") end |