summaryrefslogtreecommitdiffstats
path: root/lib/puppet/status.rb
blob: aaec5d3ba8da732b55f4257da4c6475c5fa28087 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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
        @status.to_pson
    end

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

    def name
        "status"
    end

    def name=(name)
        # NOOP
    end
end