Sha256: 73aba2b4dfea7fc8af0954b3a0907c11aaf42ee4004a2cb80728041f289dd214

Contents?: true

Size: 547 Bytes

Versions: 1

Compression:

Stored size: 547 Bytes

Contents

require 'puppet/application/indirection_base'

class Puppet::Application::Certificate < Puppet::Application::IndirectionBase
  def setup
    unless options[:ca_location]
      raise ArgumentError, "You must have a CA location specified;\n" +
        "use --ca-location to specify the location (remote, local, only)"
    end

    location = Puppet::SSL::Host.ca_location
    if location == :local && !Puppet::SSL::CertificateAuthority.ca?
      self.class.run_mode("master")
      self.set_run_mode self.class.run_mode
    end

    super
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
puppet-2.7.1 lib/puppet/application/certificate.rb