Sha256: 72d9ac3c459a5c9a1bbc9a7cfe512a2e59bcecb0f36957163045c1cd288d61b7

Contents?: true

Size: 403 Bytes

Versions: 3

Compression:

Stored size: 403 Bytes

Contents

require './lib/timeboss/calendars'

namespace :timeboss do
  namespace :calendars do
    TimeBoss::Calendars.each do |entry|
      namespace entry.name do
        desc "Open a shell with the #{entry.name} calendar"
        task shell: ['timeboss:init'] do
          require 'timeboss/support/shellable'
          TimeBoss::Support::Shellable.open(entry.calendar)
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
timeboss-0.0.7 lib/tasks/calendars.rake
timeboss-0.0.6 lib/tasks/calendars.rake
timeboss-0.0.5 lib/tasks/calendars.rake