Sha256: e72f045f0e25a0668a81f6385588f70bc805363db2cd63c4ff64f2aba5c14e20

Contents?: true

Size: 307 Bytes

Versions: 13

Compression:

Stored size: 307 Bytes

Contents

require 'puppet/resource_api/base_context'

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

  protected

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

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
puppet-resource_api-1.6.5 lib/puppet/resource_api/io_context.rb
puppet-resource_api-1.6.4 lib/puppet/resource_api/io_context.rb
puppet-resource_api-1.6.3 lib/puppet/resource_api/io_context.rb
puppet-resource_api-1.7.0 lib/puppet/resource_api/io_context.rb
puppet-resource_api-1.6.2 lib/puppet/resource_api/io_context.rb
puppet-resource_api-1.6.1 lib/puppet/resource_api/io_context.rb
puppet-resource_api-1.6.0 lib/puppet/resource_api/io_context.rb
puppet-resource_api-1.5.0 lib/puppet/resource_api/io_context.rb
puppet-resource_api-1.4.2 lib/puppet/resource_api/io_context.rb
puppet-resource_api-1.4.1 lib/puppet/resource_api/io_context.rb
puppet-resource_api-1.4.0 lib/puppet/resource_api/io_context.rb
puppet-resource_api-1.3.0 lib/puppet/resource_api/io_context.rb
puppet-resource_api-1.2.0 lib/puppet/resource_api/io_context.rb