Class: Puppet::Provider::NetappCmode

Inherits:
Netapp
  • Object
show all
Defined in:
lib/puppet/provider/netapp_cmode.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(value = {}) ⇒ NetappCmode

Returns a new instance of NetappCmode.



3
4
5
6
7
8
9
10
11
# File 'lib/puppet/provider/netapp_cmode.rb', line 3

def initialize(value={})
  super(value)
  if value.is_a? Hash
    @original_values = value.clone
  else
    @original_values = Hash.new
  end
  @create_elements = false
end

Class Method Details

.inherited(klass) ⇒ Object

Restrict to cMode



14
15
16
17
18
19
20
# File 'lib/puppet/provider/netapp_cmode.rb', line 14

def self.inherited(klass)
  klass.confine :true => begin
    transport && transport.get_application_name == 'puppet_netapp_cmode'
  rescue Exception
    false
  end
end