Sha256: 46ac5c08b17d709ac571928db952b4424a07c8ca60524091d1a96edfe893ea91

Contents?: true

Size: 429 Bytes

Versions: 9

Compression:

Stored size: 429 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

9 entries across 9 versions & 1 rubygems

Version Path
katello-3.0.2 app/lib/actions/pulp/consumer/create.rb
katello-3.0.1 app/lib/actions/pulp/consumer/create.rb
katello-3.0.0 app/lib/actions/pulp/consumer/create.rb
katello-3.0.0.rc7 app/lib/actions/pulp/consumer/create.rb
katello-3.0.0.rc5 app/lib/actions/pulp/consumer/create.rb
katello-3.0.0.rc4 app/lib/actions/pulp/consumer/create.rb
katello-3.0.0.rc3 app/lib/actions/pulp/consumer/create.rb
katello-3.0.0.rc2 app/lib/actions/pulp/consumer/create.rb
katello-3.0.0.rc1 app/lib/actions/pulp/consumer/create.rb