1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
|
require 'puppet/resource_api/simple_provider'
# Implementation for the multi_device type using the Resource API.
# device-specific class for `other_device`
class Puppet::Provider::MultiDevice::OtherDevice < Puppet::ResourceApi::SimpleProvider
def get(_context)
[]
end
def create(context, name, should)
context.notice("Creating '#{name}' with #{should.inspect}")
end
def update(context, name, should)
context.notice("Updating '#{name}' with #{should.inspect}")
end
def delete(context, name)
context.notice("Deleting '#{name}'")
end
end
|