Class: ActivationKey::Create

Inherits:
Actions::Candlepin::Abstract show all
Defined in:
app/lib/actions/candlepin/activation_key/create.rb

Instance Method Summary collapse

Instance Method Details

#runObject



12
13
14
15
16
17
18
19
# File 'app/lib/actions/candlepin/activation_key/create.rb', line 12

def run
  output[:response] = ::Katello::Resources::Candlepin::ActivationKey.create(::Katello::Util::Model.uuid,
                                                                            input[:organization_label],
                                                                            input[:service_level],
                                                                            input[:release_version],
                                                                            input[:purpose_role],
                                                                            input[:purpose_usage])
end