Updating distribution
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
module AzureDevops
|
||||
class Audit
|
||||
include IssueParser
|
||||
|
||||
def initialize(issue_content, _)
|
||||
@organization = parameter_from_issue("Organization", issue_content)
|
||||
@project = parameter_from_issue("Project", issue_content)
|
||||
end
|
||||
|
||||
def to_a
|
||||
args = []
|
||||
args.concat(["--azure-devops-organization", @organization]) unless @organization.nil?
|
||||
args.concat(["--azure-devops-project", @project]) unless @project.nil?
|
||||
|
||||
return args unless args.empty?
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,24 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
module AzureDevops
|
||||
class DryRun
|
||||
include IssueParser
|
||||
|
||||
def initialize(issue_content, command)
|
||||
@organization = parameter_from_issue("Organization", issue_content)
|
||||
@project = parameter_from_issue("Project", issue_content)
|
||||
|
||||
@pipeline_type = command.options.fetch("pipeline-type", "pipeline")
|
||||
@pipeline_id = command.options["pipeline-id"]
|
||||
end
|
||||
|
||||
def to_a
|
||||
args = [@pipeline_type]
|
||||
args.concat(["--azure-devops-organization", @organization]) unless @organization.nil?
|
||||
args.concat(["--azure-devops-project", @project]) unless @project.nil?
|
||||
args.concat(["--pipeline-id", @pipeline_id]) unless @pipeline_id.nil?
|
||||
|
||||
return args unless args.empty?
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,26 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
module AzureDevops
|
||||
class Migrate
|
||||
include IssueParser
|
||||
|
||||
def initialize(issue_content, command)
|
||||
@organization = parameter_from_issue("Organization", issue_content)
|
||||
@project = parameter_from_issue("Project", issue_content)
|
||||
|
||||
@pipeline_type = command.options.fetch("pipeline-type", "pipeline")
|
||||
@pipeline_id = command.options["pipeline-id"]
|
||||
@target_url = command.options["target-url"]
|
||||
end
|
||||
|
||||
def to_a
|
||||
args = [@pipeline_type]
|
||||
args.concat(["--azure-devops-organization", @organization]) unless @organization.nil?
|
||||
args.concat(["--azure-devops-project", @project]) unless @project.nil?
|
||||
args.concat(["--pipeline-id", @pipeline_id]) unless @pipeline_id.nil?
|
||||
args.concat(["--target-url", @target_url]) unless @target_url.nil?
|
||||
|
||||
return args unless args.empty?
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user