Sha256: bb7a3e8b4ed3a57675553dc2036a4f05fb3fc93f836c789269c97f65bb90393f

Contents?: true

Size: 591 Bytes

Versions: 531

Compression:

Stored size: 591 Bytes

Contents

require 'puppet/indirector'

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

  attr_accessor :status

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

  def to_data_hash
    @status
  end

  def self.from_data_hash(data)
    if data.include?('status')
      self.new(data['status'])
    else
      self.new(data)
    end
  end

  def name
    "status"
  end

  def name=(name)
    # NOOP
  end

  def version
    @status['version']
  end

  def version=(version)
    @status['version'] = version
  end
end

Version data entries

531 entries across 531 versions & 3 rubygems

Version Path
puppet-6.29.0 lib/puppet/status.rb
puppet-6.29.0-x86-mingw32 lib/puppet/status.rb
puppet-6.29.0-x64-mingw32 lib/puppet/status.rb
puppet-6.29.0-universal-darwin lib/puppet/status.rb
puppet-6.28.0 lib/puppet/status.rb
puppet-6.28.0-x86-mingw32 lib/puppet/status.rb
puppet-6.28.0-x64-mingw32 lib/puppet/status.rb
puppet-6.28.0-universal-darwin lib/puppet/status.rb
puppet-6.27.0 lib/puppet/status.rb
puppet-6.27.0-x86-mingw32 lib/puppet/status.rb
puppet-6.27.0-x64-mingw32 lib/puppet/status.rb
puppet-6.27.0-universal-darwin lib/puppet/status.rb
puppet-6.26.0 lib/puppet/status.rb
puppet-6.26.0-x86-mingw32 lib/puppet/status.rb
puppet-6.26.0-x64-mingw32 lib/puppet/status.rb
puppet-6.26.0-universal-darwin lib/puppet/status.rb
puppet-6.25.1 lib/puppet/status.rb
puppet-6.25.1-x86-mingw32 lib/puppet/status.rb
puppet-6.25.1-x64-mingw32 lib/puppet/status.rb
puppet-6.25.1-universal-darwin lib/puppet/status.rb