debian-mirror-gitlab/lib/gitlab/ci/build/releaser.rb

25 lines
439 B
Ruby
Raw Normal View History

2020-06-23 00:09:42 +05:30
# frozen_string_literal: true
module Gitlab
module Ci
module Build
class Releaser
BASE_COMMAND = 'release-cli create'
attr_reader :config
def initialize(config:)
@config = config
end
def script
command = BASE_COMMAND.dup
config.each { |k, v| command.concat(" --#{k.to_s.dasherize} \"#{v}\"") }
command
end
end
end
end
end