Sha256: 5fae51f50377f8e93d2e07b2183ab6fd13857420d3fe429767dca9dee944831d

Contents?: true

Size: 428 Bytes

Versions: 145

Compression:

Stored size: 428 Bytes

Contents

module Actions
  module Pulp
    module Consumer
      class Create < Pulp::Abstract
        include Helpers::Presenter

        input_format do
          param :uuid, String
          param :name, String
        end

        def run
          response = pulp_extensions.consumer.create(input[:uuid], display_name: input[:name])
          output[:response] = response.slice(:uuid, :name)
        end
      end
    end
  end
end

Version data entries

145 entries across 145 versions & 1 rubygems

Version Path
katello-4.0.3 app/lib/actions/pulp/consumer/create.rb
katello-3.18.5 app/lib/actions/pulp/consumer/create.rb
katello-4.0.2.1 app/lib/actions/pulp/consumer/create.rb
katello-4.0.2 app/lib/actions/pulp/consumer/create.rb
katello-3.18.4 app/lib/actions/pulp/consumer/create.rb
katello-4.0.1.2 app/lib/actions/pulp/consumer/create.rb
katello-3.18.3.1 app/lib/actions/pulp/consumer/create.rb
katello-4.1.0.rc2.2 app/lib/actions/pulp/consumer/create.rb
katello-4.1.0.rc2.1 app/lib/actions/pulp/consumer/create.rb
katello-4.0.1.1 app/lib/actions/pulp/consumer/create.rb
katello-3.18.3 app/lib/actions/pulp/consumer/create.rb
katello-4.1.0.rc2 app/lib/actions/pulp/consumer/create.rb
katello-4.0.1 app/lib/actions/pulp/consumer/create.rb
katello-4.1.0.rc1.1 app/lib/actions/pulp/consumer/create.rb
katello-4.1.0.rc1 app/lib/actions/pulp/consumer/create.rb
katello-4.0.0 app/lib/actions/pulp/consumer/create.rb
katello-4.0.0.rc3.1 app/lib/actions/pulp/consumer/create.rb
katello-4.0.0.rc3 app/lib/actions/pulp/consumer/create.rb
katello-3.18.2.1 app/lib/actions/pulp/consumer/create.rb
katello-3.18.2 app/lib/actions/pulp/consumer/create.rb