Class: Chef::Provider::RightLinkTag

Inherits:
Chef::Provider show all
Defined in:
lib/chef/providers/right_link_tag_provider.rb

Overview

RightLinkTag chef provider.

Instance Method Summary collapse

Instance Method Details

#action_loadObject

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
  tags = RightScale::Cook.instance.load_tags(@new_resource.timeout)
  node.set[:right_link_tags] = tags
  true
end

#action_publishObject

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_removeObject

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_resourceObject

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