Sha256: 28e16980929080d10c556ffc09017e5153f6cf2034194ba0a932331a4396e13f

Contents?: true

Size: 408 Bytes

Versions: 60

Compression:

Stored size: 408 Bytes

Contents

require 'puppet/indirector'

class Puppet::Status
  extend Puppet::Indirector
  indirects :status, :terminus_class => :local

  attr :status, true

  def initialize( status = nil )
    @status = status || {"is_alive" => true}
  end

  def to_pson(*args)
    @status.to_pson
  end

  def self.from_pson( pson )
    self.new( pson )
  end

  def name
    "status"
  end

  def name=(name)
    # NOOP
  end
end

Version data entries

60 entries across 60 versions & 4 rubygems

Version Path
puppet-parse-0.1.4 lib/vendor/puppet/status.rb
puppet-parse-0.1.3 lib/vendor/puppet/status.rb
puppet-parse-0.1.2 lib/vendor/puppet/status.rb
puppet-parse-0.1.1 lib/vendor/puppet/status.rb
puppet-3.2.1 lib/puppet/status.rb
puppet-3.2.1.rc1 lib/puppet/status.rb
puppet-3.2.0.rc2 lib/puppet/status.rb
librarian-puppet-0.9.9 vendor/gems/ruby/1.9.1/gems/puppet-3.1.0/lib/puppet/status.rb
puppet-3.2.0.rc1 lib/puppet/status.rb
puppet-parse-0.1.0 lib/vendor/puppet/status.rb
puppet-parse-0.0.6 lib/vendor/puppet/status.rb
puppet-2.7.21 lib/puppet/status.rb
puppet-3.1.1 lib/puppet/status.rb
puppet-parse-0.0.5 lib/vendor/puppet/status.rb
puppet-parse-0.0.4 lib/vendor/puppet/status.rb
librarian-puppet-0.9.8 vendor/gems/ruby/1.9.1/gems/puppet-3.1.0/lib/puppet/status.rb
puppet-3.1.0 lib/puppet/status.rb
puppet-3.1.0.rc2 lib/puppet/status.rb
puppet-3.1.0.rc1 lib/puppet/status.rb
puppet-3.0.2 lib/puppet/status.rb