Class: Serverkit::Resources::HomebrewTap

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

Instance Method Summary collapse

Instance Method Details

#applyObject

Note:

Override


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

def apply
  run_command("brew #{applied_action_name} #{name}")
end

#checkObject

Note:

Override


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

def check
  has_untapped_state? ^ check_command("brew tap | grep -E '^#{name}$'")
end