Sha256: e4982a168c830d6ec5ee658d664be3bf135018b69331dff56565c9fd563786b8

Contents?: true

Size: 303 Bytes

Versions: 12

Compression:

Stored size: 303 Bytes

Contents

require 'puppet/resource_api/base_context'

class Puppet::ResourceApi::IOContext < Puppet::ResourceApi::BaseContext
  def initialize(typename, target = $stderr)
    super(typename)
    @target = target
  end

  protected

  def send_log(level, message)
    @target.puts "#{level}: #{message}"
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
puppet-resource_api-1.1.0 lib/puppet/resource_api/io_context.rb
puppet-resource_api-1.0.3 lib/puppet/resource_api/io_context.rb
puppet-resource_api-1.0.2 lib/puppet/resource_api/io_context.rb
puppet-resource_api-1.0.1 lib/puppet/resource_api/io_context.rb
puppet-resource_api-1.0.0 lib/puppet/resource_api/io_context.rb
puppet-resource_api-0.10.0 lib/puppet/resource_api/io_context.rb
puppet-resource_api-0.9.0 lib/puppet/resource_api/io_context.rb
puppet-resource_api-0.3.0 lib/puppet/resource_api/io_context.rb
puppet-resource_api-0.2.2 lib/puppet/resource_api/io_context.rb
puppet-resource_api-0.2.1 lib/puppet/resource_api/io_context.rb
puppet-resource_api-0.2.0 lib/puppet/resource_api/io_context.rb
puppet-resource_api-0.1.0 lib/puppet/resource_api/io_context.rb