Class: Serverkit::Resources::Package

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

Direct Known Subclasses

Homebrew

Instance Attribute Summary

Attributes inherited from Base

#attributes, #backend, #recipe

Instance Method Summary collapse

Methods inherited from Base

#all_errors, attribute, #initialize, #to_a, #type

Constructor Details

This class inherits a constructor from Serverkit::Resources::Base

Instance Method Details

#applyObject



8
9
10
# File 'lib/serverkit/resources/package.rb', line 8

def apply
  run_command_from_identifier(:install_package, name)
end

#checktrue, false

Returns:

  • (true, false)


13
14
15
# File 'lib/serverkit/resources/package.rb', line 13

def check
  check_command_from_identifier(:check_package_is_installed, name)
end