debian-mirror-gitlab/app/services/packages/conan/create_package_service.rb

19 lines
463 B
Ruby
Raw Normal View History

2020-07-28 23:09:34 +05:30
# frozen_string_literal: true
module Packages
module Conan
2020-11-24 15:15:51 +05:30
class CreatePackageService < ::Packages::CreatePackageService
2020-07-28 23:09:34 +05:30
def execute
2020-11-24 15:15:51 +05:30
create_package!(:conan,
2020-07-28 23:09:34 +05:30
name: params[:package_name],
version: params[:package_version],
conan_metadatum_attributes: {
package_username: params[:package_username],
package_channel: params[:package_channel]
}
)
end
end
end
end