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-3.0.6 app/models/concerns/foreman_puppet/extensions/host_common.rb
foreman_puppet-2.0.6 app/models/concerns/foreman_puppet/extensions/host_common.rb
foreman_puppet-2.0.5 app/models/concerns/foreman_puppet/extensions/host_common.rb
foreman_puppet-3.0.5 app/models/concerns/foreman_puppet/extensions/host_common.rb
foreman_puppet-3.0.4 app/models/concerns/foreman_puppet/extensions/host_common.rb
foreman_puppet-2.0.4 app/models/concerns/foreman_puppet/extensions/host_common.rb
foreman_puppet-3.0.3 app/models/concerns/foreman_puppet/extensions/host_common.rb
foreman_puppet-3.0.2 app/models/concerns/foreman_puppet/extensions/host_common.rb
foreman_puppet-2.0.3 app/models/concerns/foreman_puppet/extensions/host_common.rb
foreman_puppet-3.0.1 app/models/concerns/foreman_puppet/extensions/host_common.rb
foreman_puppet-2.0.2 app/models/concerns/foreman_puppet/extensions/host_common.rb
foreman_puppet-2.0.0 app/models/concerns/foreman_puppet/extensions/host_common.rb
foreman_puppet-1.0.5 app/models/concerns/foreman_puppet/extensions/host_common.rb
foreman_puppet-1.0.4 app/models/concerns/foreman_puppet/extensions/host_common.rb
foreman_puppet-2.0.0.alpha.2 app/models/concerns/foreman_puppet/extensions/host_common.rb
foreman_puppet-1.0.3 app/models/concerns/foreman_puppet/extensions/host_common.rb
foreman_puppet-1.0.2 app/models/concerns/foreman_puppet/extensions/host_common.rb
foreman_puppet-1.0.1 app/models/concerns/foreman_puppet/extensions/host_common.rb
foreman_puppet-1.0.0 app/models/concerns/foreman_puppet/extensions/host_common.rb
foreman_puppet-1.0.0.rc.2 app/models/concerns/foreman_puppet/extensions/host_common.rb