Method: Specinfra::Command::Darwin::Base::Package.install

Defined in:
lib/specinfra/command/darwin/base/package.rb

.install(package, version = nil, option = '') ⇒ Object

[View source]

31
32
33
34
# File 'lib/specinfra/command/darwin/base/package.rb', line 31

def install(package, version=nil, option='')
  # Homebrew doesn't support to install specific version.
  cmd = "brew install #{option} '#{package}'"
end