debian-mirror-gitlab/app/services/packages/conan/create_package_service.rb
2020-08-09 17:44:08 +05:30

19 lines
476 B
Ruby

# frozen_string_literal: true
module Packages
module Conan
class CreatePackageService < BaseService
def execute
project.packages.create!(
name: params[:package_name],
version: params[:package_version],
package_type: :conan,
conan_metadatum_attributes: {
package_username: params[:package_username],
package_channel: params[:package_channel]
}
)
end
end
end
end