Class: Backlog::Archive
- Inherits:
-
Object
- Object
- Backlog::Archive
- Defined in:
- lib/backlog/archive.rb
Class Method Summary collapse
Instance Method Summary collapse
- #execute! ⇒ Object
-
#initialize(args, date) ⇒ Archive
constructor
A new instance of Archive.
Constructor Details
#initialize(args, date) ⇒ Archive
Returns a new instance of Archive.
7 8 9 10 |
# File 'lib/backlog/archive.rb', line 7 def initialize(args, date) @args = args @date = date end |
Class Method Details
.help ⇒ Object
21 22 23 24 25 26 27 |
# File 'lib/backlog/archive.rb', line 21 def self.help return <<-eos Archive: Move an entry to archive. No arguments cleans all old entries eos end |
Instance Method Details
#execute! ⇒ Object
12 13 14 15 16 17 18 19 |
# File 'lib/backlog/archive.rb', line 12 def execute! # our cli parser will always try to guess a legitimate date if @date == nil or @date.date == Date.today archive_all else archive_path @date.path end end |