summaryrefslogtreecommitdiffstats
path: root/lib/puppet/client/ca.rb
blob: 8904c4a13c26d00aa1d4f756c8d53d182da1a0fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
class Puppet::Client::CA < Puppet::Client::ProxyClient
    @drivername = :CA

    # set up the appropriate interface methods
    @handler = Puppet::Server::CA
    self.mkmethods

    def initialize(hash = {})
        if hash.include?(:CA)
            if hash[:CA].is_a? Hash
                hash[:CA] = Puppet::Server::CA.new(hash[:CA])
            else
                hash[:CA] = Puppet::Server::CA.new()
            end
        end

        super(hash)
    end
end

# $Id$