Class: NativePackageInstaller::Platform::FreeBSD
- Inherits:
-
Object
- Object
- NativePackageInstaller::Platform::FreeBSD
- Defined in:
- lib/native-package-installer/platform/freebsd.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.current_platform? ⇒ Boolean
22 23 24 |
# File 'lib/native-package-installer/platform/freebsd.rb', line 22 def current_platform? ExecutableFinder.exist?("pkg") end |
Instance Method Details
#install_command ⇒ Object
31 32 33 |
# File 'lib/native-package-installer/platform/freebsd.rb', line 31 def install_command "pkg install -y" end |
#need_super_user_priviledge? ⇒ Boolean
35 36 37 |
# File 'lib/native-package-installer/platform/freebsd.rb', line 35 def need_super_user_priviledge? true end |
#package(spec) ⇒ Object
27 28 29 |
# File 'lib/native-package-installer/platform/freebsd.rb', line 27 def package(spec) spec[:freebsd] end |