Module: Puppet_X::EnterpriseModules::WebLogic::Provider

Includes:
EasyType::Provider
Defined in:
lib/puppet_x/enterprisemodules/weblogic/provider.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(parent) ⇒ Object



14
15
16
17
18
19
20
21
22
23
24
25
26
# File 'lib/puppet_x/enterprisemodules/weblogic/provider.rb', line 14

def self.included(parent)
  #
  # We use send here because in ruby 1.8.7, include is a private
  # method. In ruby 1.9 this has become public.
  # TODO: When we lose support for ruby 1.8.7 change this to more standard
  #
  parent.send(:include, EasyType)
  parent.send(:include, EasyType::Provider)
  parent.instance_eval do
    confine :exists => '/etc/wls_setting.yaml'
    confine :feature => :weblogic_running
  end
end

Instance Method Details

#execute_from_type(action) ⇒ Object



28
29
30
31
32
33
# File 'lib/puppet_x/enterprisemodules/weblogic/provider.rb', line 28

def execute_from_type(action)
  wls_config = Puppet_X::EnterpriseModules::WebLogic::Tree.new(resource.domain)
  wls_config.edit
  super
  wls_config.save
end