Class: Serverkit::Resources::HomebrewCask
- Defined in:
- lib/serverkit/resources/homebrew_cask.rb
Instance Attribute Summary
Attributes inherited from Base
#attributes, #backend, #recipe
Instance Method Summary collapse
Methods inherited from Base
#all_errors, attribute, #handlers, #id, #initialize, #inspect_apply_result, #inspect_check_result, #notifiable?, #run_apply, #run_check, #to_a
Constructor Details
This class inherits a constructor from Serverkit::Resources::Base
Instance Method Details
#apply ⇒ Object
Note:
Override
9 10 11 |
# File 'lib/serverkit/resources/homebrew_cask.rb', line 9 def apply run_command("brew cask install #{name}") end |
#check ⇒ Object
Note:
Override
14 15 16 |
# File 'lib/serverkit/resources/homebrew_cask.rb', line 14 def check check_command("/usr/local/bin/brew cask list -1 | grep -E '^#{name}$'") end |