Class: Lazylead::Task::FixVersion
- Inherits:
-
Object
- Object
- Lazylead::Task::FixVersion
- Defined in:
- lib/lazylead/task/fix_version.rb
Overview
TODO:
#/DEV Each task should verify input arguments. The common API should be provided for each task.
Instance Method Summary collapse
-
#initialize(log = Log::NOTHING) ⇒ FixVersion
constructor
A new instance of FixVersion.
- #run(sys, postman, opts) ⇒ Object
Constructor Details
#initialize(log = Log::NOTHING) ⇒ FixVersion
Returns a new instance of FixVersion.
34 35 36 |
# File 'lib/lazylead/task/fix_version.rb', line 34 def initialize(log = Log::NOTHING) @log = log end |
Instance Method Details
#run(sys, postman, opts) ⇒ Object
38 39 40 41 42 43 44 45 |
# File 'lib/lazylead/task/fix_version.rb', line 38 def run(sys, postman, opts) allowed = opts["allowed"].split(",").map(&:strip).reject(&:blank?) postman.send opts.merge( versions: sys.issues(opts["jql"], expand: "changelog") .map { |i| Version.new(i, allowed) } .select(&:changed?) ) end |