Class: Encapsulator::Installer
- Inherits:
-
Object
- Object
- Encapsulator::Installer
- Defined in:
- lib/encapsulator/installer.rb
Class Method Summary collapse
Class Method Details
.install_fedora ⇒ Object
3 4 5 6 7 8 9 10 11 12 |
# File 'lib/encapsulator/installer.rb', line 3 def self.install_fedora system 'wget', 'http://download.virtualbox.org/virtualbox/5.1.22/VirtualBox-5.1-5.1.22_115126_fedora25-1.x86_64.rpm', out: $stdout, err: $stdout system 'sudo', 'dnf', '-y', '-v', 'install', './VirtualBox-5.1-5.1.22_115126_fedora25-1.x86_64.rpm', out: $stdout, err: $stdout system 'sudo', 'dnf', '-y', '-v', 'install', 'vagrant', out: $stdout, err: $stdout system 'sudo', 'dnf', '-y', '-v', 'install', 'openssl-devel', out: $stdout, err: $stdout system 'sudo', 'dnf', '-y', '-v', 'install', 'libcurl-devel', out: $stdout, err: $stdout system 'sudo', 'dnf', '-y', '-v', 'install', 'libxml-devel', out: $stdout, err: $stdout system 'sudo', 'dnf', '-y', '-v', 'install', 'libxml2-devel', out: $stdout, err: $stdout system 'sudo', 'dnf', '-y', '-v', 'install', 'R', out: $stdout, err: $stdout end |
.install_mac ⇒ Object
19 20 21 22 23 |
# File 'lib/encapsulator/installer.rb', line 19 def self.install_mac system 'brew', 'cask', 'install', 'virtualbox', out: $stdout, err: $stdout system 'brew', 'cask', 'install', 'vagrant', out: $stdout, err: $stdout system 'brew', 'cask', 'install', 'vagrant-manager', out: $stdout, err: $stdout end |
.install_ubuntu ⇒ Object
14 15 16 17 |
# File 'lib/encapsulator/installer.rb', line 14 def self.install_ubuntu system 'sudo', 'apt', '-y', 'install', 'virtualbox', 'virtualbox-ext-pack', out: $stdout, err: $stdout system 'sudo', 'apt', '-y', 'install', 'vagrant', out: $stdout, err: $stdout end |