Sha256: 6e8e40e63c7bc076e9ec415868791d2ea645879d85968880561aa19449077f04

Contents?: true

Size: 399 Bytes

Versions: 40

Compression:

Stored size: 399 Bytes

Contents

module ForemanPuppet
  module Extensions
    module HostCommon
      extend ActiveSupport::Concern

      def all_puppetclasses(env = environment)
        return ForemanPuppet::Puppetclass.none unless puppet
        puppet.all_puppetclasses(env)
      end

      def puppetclasses
        return ForemanPuppet::Puppetclass.none unless puppet
        puppet.puppetclasses
      end
    end
  end
end

Version data entries

40 entries across 40 versions & 1 rubygems

Version Path
foreman_puppet-6.3.0 app/models/concerns/foreman_puppet/extensions/host_common.rb
foreman_puppet-6.2.0 app/models/concerns/foreman_puppet/extensions/host_common.rb
foreman_puppet-6.1.1 app/models/concerns/foreman_puppet/extensions/host_common.rb
foreman_puppet-5.1.3 app/models/concerns/foreman_puppet/extensions/host_common.rb
foreman_puppet-6.1.0 app/models/concerns/foreman_puppet/extensions/host_common.rb
foreman_puppet-6.0.1 app/models/concerns/foreman_puppet/extensions/host_common.rb
foreman_puppet-6.0.0 app/models/concerns/foreman_puppet/extensions/host_common.rb
foreman_puppet-5.1.2 app/models/concerns/foreman_puppet/extensions/host_common.rb
foreman_puppet-4.1.1 app/models/concerns/foreman_puppet/extensions/host_common.rb
foreman_puppet-5.1.1 app/models/concerns/foreman_puppet/extensions/host_common.rb
foreman_puppet-5.1.0 app/models/concerns/foreman_puppet/extensions/host_common.rb
foreman_puppet-4.1.0 app/models/concerns/foreman_puppet/extensions/host_common.rb
foreman_puppet-4.0.4 app/models/concerns/foreman_puppet/extensions/host_common.rb
foreman_puppet-5.0.0 app/models/concerns/foreman_puppet/extensions/host_common.rb
foreman_puppet-4.0.3 app/models/concerns/foreman_puppet/extensions/host_common.rb
foreman_puppet-4.0.2 app/models/concerns/foreman_puppet/extensions/host_common.rb
foreman_puppet-3.0.7 app/models/concerns/foreman_puppet/extensions/host_common.rb
foreman_puppet-2.0.7 app/models/concerns/foreman_puppet/extensions/host_common.rb
foreman_puppet-4.0.1 app/models/concerns/foreman_puppet/extensions/host_common.rb
foreman_puppet-4.0.0 app/models/concerns/foreman_puppet/extensions/host_common.rb