class NativePackageInstaller::Platform::MacPorts
Public Class Methods
current_platform?()
click to toggle source
# File lib/native-package-installer/platform/macports.rb, line 22 def current_platform? ExecutableFinder.exist?("port") end
Public Instance Methods
install_command()
click to toggle source
# File lib/native-package-installer/platform/macports.rb, line 31 def install_command "port install -y" end
need_super_user_priviledge?()
click to toggle source
# File lib/native-package-installer/platform/macports.rb, line 35 def need_super_user_priviledge? true end
package(spec)
click to toggle source
# File lib/native-package-installer/platform/macports.rb, line 27 def package(spec) spec[:macports] end