Sha256: 345a6c7f27eae87d25c413c701b8be8dc12865da9a9ef20e08cb329c28b54021

Contents?: true

Size: 485 Bytes

Versions: 12

Compression:

Stored size: 485 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)
    if pson.include?('status')
      self.new(pson['status'])
    else
      self.new(pson)
    end
  end

  def name
    "status"
  end

  def name=(name)
    # NOOP
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
puppet-2.7.26 lib/puppet/status.rb
puppet-2.7.25 lib/puppet/status.rb
puppet-2.7.24 lib/puppet/status.rb
puppet-3.3.0 lib/puppet/status.rb
puppet-3.3.0.rc3 lib/puppet/status.rb
puppet-3.3.0.rc2 lib/puppet/status.rb
puppet-3.2.4 lib/puppet/status.rb
puppet-2.7.23 lib/puppet/status.rb
puppet-3.2.3 lib/puppet/status.rb
puppet-3.2.3.rc1 lib/puppet/status.rb
puppet-3.2.2 lib/puppet/status.rb
puppet-2.7.22 lib/puppet/status.rb