Sha256: e789f3dfc7d91d5cfde476a69453d3a28c6db3e28462e73dbc6d393248329079

Contents?: true

Size: 403 Bytes

Versions: 2

Compression:

Stored size: 403 Bytes

Contents

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

module Wlog
# MacroCommand that archives finished issues
# @author Simon Symeonidis
class ArchiveFinishedIssues < Commandable

  def initialize(db)
    @issues = Issue.find_all_finished(db)
    @arch_command = ArchiveIssues.new(@issues)
  end

  def execute
    @arch_command.execute
  end

end
end

Version data entries

2 entries across 2 versions & 1 rubygems

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