Class: Chef::Provider::OneVnet
- Inherits:
-
LWRPBase
- Object
- LWRPBase
- Chef::Provider::OneVnet
- Defined in:
- lib/chef/provider/one_vnet.rb
Overview
Implementation of Provider class.
Instance Attribute Summary collapse
-
#current_vnet ⇒ Object
readonly
Returns the value of attribute current_vnet.
Instance Method Summary collapse
Instance Attribute Details
permalink #current_vnet ⇒ Object (readonly)
Returns the value of attribute current_vnet.
31 32 33 |
# File 'lib/chef/provider/one_vnet.rb', line 31 def current_vnet @current_vnet end |
Instance Method Details
permalink #action_handler ⇒ Object
[View source]
33 34 35 |
# File 'lib/chef/provider/one_vnet.rb', line 33 def action_handler @action_handler ||= Chef::Provisioning::ChefProviderActionHandler.new(self) end |
permalink #exists?(filter) ⇒ Boolean
37 38 39 40 41 42 |
# File 'lib/chef/provider/one_vnet.rb', line 37 def exists?(filter) new_driver = driver @current_vnet = new_driver.one.get_resource(:virtualnetwork, filter) Chef::Log.debug("VNET '#{filter}' exists: #{!@current_vnet.nil?}") !@current_vnet.nil? end |