Class: Serverkit::Resources::HomebrewPackage

Inherits:
Package
  • Object
show all
Defined in:
lib/serverkit/resources/homebrew_package.rb

Instance Method Summary collapse

Instance Method Details

#applyObject

Note:

Override to force to use brew command


7
8
9
10
11
12
13
14
15
# File 'lib/serverkit/resources/homebrew_package.rb', line 7

def apply
  run_command(
    ::Specinfra::Command::Darwin::Base::Package.install(
      name,
      version,
      options,
    ),
  )
end

#checkObject

Note:

Override to force to use brew command


18
19
20
21
22
23
24
25
# File 'lib/serverkit/resources/homebrew_package.rb', line 18

def check
  check_command(
    ::Specinfra::Command::Darwin::Base::Package.check_is_installed(
      unnested_name,
      version,
    ),
  )
end