Class: Chef::Provider::RightLinkTag
- Inherits:
-
Chef::Provider
- Object
- Chef::Provider
- Chef::Provider::RightLinkTag
- Defined in:
- lib/chef/providers/right_link_tag_provider.rb
Overview
RightLinkTag chef provider.
Instance Method Summary collapse
-
#action_load ⇒ Object
Load current tags.
-
#action_publish ⇒ Object
Publish tag.
-
#action_remove ⇒ Object
Remove tag.
-
#load_current_resource ⇒ Object
Load current.
Instance Method Details
#action_load ⇒ Object
Load current tags
Return
- true
-
Always return true
60 61 62 63 64 |
# File 'lib/chef/providers/right_link_tag_provider.rb', line 60 def action_load = RightScale::Cook.instance.(@new_resource.timeout) node.set[:right_link_tags] = true end |
#action_publish ⇒ Object
Publish tag
Return
- true
-
Always return true
42 43 44 45 |
# File 'lib/chef/providers/right_link_tag_provider.rb', line 42 def action_publish RightScale::Cook.instance.add_tag(@new_resource.name, @new_resource.timeout) true end |
#action_remove ⇒ Object
Remove tag
Return
- true
-
Always return true
51 52 53 54 |
# File 'lib/chef/providers/right_link_tag_provider.rb', line 51 def action_remove RightScale::Cook.instance.remove_tag(@new_resource.name, @new_resource.timeout) true end |
#load_current_resource ⇒ Object
Load current
Return
- true
-
Always return true
34 35 36 |
# File 'lib/chef/providers/right_link_tag_provider.rb', line 34 def load_current_resource true end |