Class: Wright::Provider
- Inherits:
-
Object
- Object
- Wright::Provider
- Defined in:
- lib/wright/provider.rb,
lib/wright/provider/file.rb,
lib/wright/provider/user.rb,
lib/wright/provider/group.rb,
lib/wright/provider/package.rb,
lib/wright/provider/symlink.rb,
lib/wright/provider/directory.rb,
lib/wright/provider/package/apt.rb,
lib/wright/provider/package/yum.rb,
lib/wright/provider/user/gnu_passwd.rb,
lib/wright/provider/group/gnu_passwd.rb,
lib/wright/provider/package/homebrew.rb,
lib/wright/provider/user/darwin_directory_service.rb,
lib/wright/provider/group/darwin_directory_service.rb
Overview
Provider class.
Defined Under Namespace
Classes: Directory, File, Group, Package, Symlink, User
Constant Summary collapse
Instance Method Summary collapse
-
#initialize(resource) ⇒ Provider
constructor
Initializes a Provider.
-
#updated? ⇒ Bool
Checks if the provider was updated since the last call to #updated?.
Constructor Details
#initialize(resource) ⇒ Provider
Initializes a Provider.
18 19 20 21 |
# File 'lib/wright/provider.rb', line 18 def initialize(resource) @resource = resource @updated = false end |
Instance Method Details
#updated? ⇒ Bool
Checks if the provider was updated since the last call to #updated?
28 29 30 31 32 |
# File 'lib/wright/provider.rb', line 28 def updated? updated_since_last_call = updated self.updated = false updated_since_last_call end |