Sha256: 600c35e15babe5b764c148e7d8418c977a2c54a1f5b115d2096e40d8dd98531d

Contents?: true

Size: 397 Bytes

Versions: 6

Compression:

Stored size: 397 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
    @issues = Issue.where(:status => 2)
    @arch_command = ArchiveIssues.new(@issues)
  end

  def execute
    @arch_command.execute
  end

end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
wlog-1.2.2 lib/wlog/commands/archive_finished_issues.rb
wlog-1.2.1 lib/wlog/commands/archive_finished_issues.rb
wlog-1.2.0 lib/wlog/commands/archive_finished_issues.rb
wlog-1.1.7 lib/wlog/commands/archive_finished_issues.rb
wlog-1.1.6 lib/wlog/commands/archive_finished_issues.rb
wlog-1.1.5 lib/wlog/commands/archive_finished_issues.rb