Files

21 lines
523 B
Ruby
Raw Permalink Normal View History

2022-01-07 19:45:53 +00:00
# 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 = []
2023-07-31 16:45:40 -07:00
args.push(["--azure-devops-organization", @organization]) unless @organization.nil?
args.push(["--azure-devops-project", @project]) unless @project.nil?
2022-01-07 19:45:53 +00:00
return args unless args.empty?
end
end
end