Sha256: 2c771201a6cd9e7e70feddfe02c9c1512558ce5ee1d9086b2b6cfbe5a756101a

Contents?: true

Size: 1.5 KB

Versions: 9

Compression:

Stored size: 1.5 KB

Contents

module Actions
  module Candlepin
    module Consumer
      class Update < Candlepin::Abstract
        def plan(system)
          plan_self(:uuid => system.uuid,
                    :facts => system.facts,
                    :guestIds => system.guestIds,
                    :installedProducts => system.installedProducts,
                    :autoheal => system.autoheal,
                    :releaseVer => system.releaseVer,
                    :serviceLevel => system.serviceLevel,
                    :cp_environment_id => system.cp_environment_id,
                    :capabilities => system.capabilities,
                    :lastCheckin => system.lastCheckin)
        end

        def run
          ::Katello::Resources::Candlepin::Consumer.update(input[:uuid],
                                                           input[:facts],
                                                           input[:guestIds],
                                                           input[:installedProducts],
                                                           input[:autoheal],
                                                           input[:releaseVer],
                                                           input[:serviceLevel],
                                                           input[:cp_environment_id],
                                                           input[:capabilities],
                                                           input[:lastCheckin])
        end
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
katello-2.4.5 app/lib/actions/candlepin/consumer/update.rb
katello-2.4.4 app/lib/actions/candlepin/consumer/update.rb
katello-2.4.3 app/lib/actions/candlepin/consumer/update.rb
katello-2.4.2 app/lib/actions/candlepin/consumer/update.rb
katello-2.4.1 app/lib/actions/candlepin/consumer/update.rb
katello-2.4.0 app/lib/actions/candlepin/consumer/update.rb
katello-2.4.0.rc3 app/lib/actions/candlepin/consumer/update.rb
katello-2.4.0.rc2 app/lib/actions/candlepin/consumer/update.rb
katello-2.4.0.rc1 app/lib/actions/candlepin/consumer/update.rb