Class: Actions::Pulp::Consumer::Create

Inherits:
Abstract
  • Object
show all
Includes:
Helpers::Presenter
Defined in:
app/lib/actions/pulp/consumer/create.rb

Instance Method Summary collapse

Methods included from Helpers::Presenter

#presenter

Methods inherited from Abstract

#pulp_extensions, #pulp_resources

Instance Method Details

#runObject



12
13
14
15
# File 'app/lib/actions/pulp/consumer/create.rb', line 12

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