Class: Serverkit::Resources::HomebrewCaskPackage

Inherits:
Base
  • Object
show all
Defined in:
lib/serverkit/resources/homebrew_cask_package.rb

Instance Method Summary collapse

Instance Method Details

#applyObject

Note:

Override


10
11
12
# File 'lib/serverkit/resources/homebrew_cask_package.rb', line 10

def apply
  run_command("brew cask install #{options} #{name}")
end

#checkObject

Note:

Override


15
16
17
# File 'lib/serverkit/resources/homebrew_cask_package.rb', line 15

def check
  check_command("brew cask list -1 | grep -E '^#{name}$'")
end