Module: PuppetX::Sensu::ProviderCreate

Defined in:
lib/puppet_x/sensu/provider_create.rb

Instance Method Summary collapse

Instance Method Details

#createObject



4
5
6
7
8
9
10
11
# File 'lib/puppet_x/sensu/provider_create.rb', line 4

def create
  fail 'pre_create not defined' unless respond_to? :pre_create
  pre_create
  resource.properties.each do |prop|
    next if prop.name == :ensure # we're being called because we're syncing ensure
    prop.set(prop.should) unless prop.should.nil?
  end
end