Sha256: 35706c6bb9ec57950d9bf36a67f7d99eb138b23f853c98aa0c0d568577e2aeb6

Contents?: true

Size: 402 Bytes

Versions: 2

Compression:

Stored size: 402 Bytes

Contents

require 'wlog/commands/commandable'
require 'wlog/domain/issue'

module Wlog
# Command. Given a list of issues, mark them as archived.
# @author Simon Symeonidis
class ArchiveIssues < Commandable

  def initialize(issues)
    @issues = issues
  end

  # Update the issues to be marked as archived
  def execute
    @issues.each do |issue|
      issue.archive!
      issue.update
    end
  end

end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
wlog-1.1.1 lib/wlog/commands/archive_issues.rb
wlog-1.0.5 lib/wlog/commands/archive_issues.rb