Module: BswTech::DnetInstallUtil
- Defined in:
- lib/path_fetcher.rb
Constant Summary collapse
- BASE_PATH =
File.(File.dirname(__FILE__))
- PARAFFIN_VERSION =
'3.6.2.0'
- PARAFFIN_EXE =
File.join BASE_PATH, "Paraffin-#{PARAFFIN_VERSION}", 'Paraffin.exe'
- ELEVATE_VERSION =
'1.3.0'
- ELEVATE_EXE =
File.join BASE_PATH, "elevate-#{ELEVATE_VERSION}", 'elevate.exe'
- DOTNETINSTALLER_VERSION =
'2.2'
- DOTNET_INSTALLER_PATH =
File.join BASE_PATH, "dotNetInstaller-#{DOTNETINSTALLER_VERSION}"
- PSTOOLS_VERSION =
'2.0'
- PSTOOLS_PATH =
File.join BASE_PATH, "pstools-#{PSTOOLS_VERSION}"
Class Method Summary collapse
Class Method Details
.dot_net_installer_base_path ⇒ Object
29 30 31 32 33 34 35 36 37 38 39 40 |
# File 'lib/path_fetcher.rb', line 29 def self.dot_net_installer_base_path if not Dir.exists? DOTNET_INSTALLER_PATH downloaded_zip = get_zip_file 'http://code.dblock.org/downloads/dotnetinstaller/dotNetInstaller.2.2.zip', 'dotnetinstaller.zip' extract_zip downloaded_zip, BASE_PATH File.delete downloaded_zip File.rename(File.join(BASE_PATH, 'dotNetInstaller 2.2'), DOTNET_INSTALLER_PATH) else puts "Using existing distro at #{DOTNET_INSTALLER_PATH}" end DOTNET_INSTALLER_PATH end |
.ps_tools_base_path ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/path_fetcher.rb', line 17 def self.ps_tools_base_path if not Dir.exists? PSTOOLS_PATH downloaded_zip = get_zip_file 'http://download.sysinternals.com/files/PSTools.zip', 'pstools.zip' extract_zip downloaded_zip, PSTOOLS_PATH File.delete downloaded_zip else puts "Using existing distro at #{PSTOOLS_PATH}" end PSTOOLS_PATH end |