Class: Next_Months_Calendar
- Defined in:
- lib/Next_Months_Calendar/next_months_calendar.rb
Instance Method Summary collapse
Methods inherited from Geeklet
#description, #name, #show_help
Methods included from Configurable
#add_overrides, #command_parser, #configurableValue, #configurations, included, #isHelp?, #registerConfiguration
Instance Method Details
#run(params) ⇒ Object
3 4 5 6 7 8 |
# File 'lib/Next_Months_Calendar/next_months_calendar.rb', line 3 def run(params) super(:Next_Months_Calendar, params) today = Date.today nextmonth = today >> 1 Kernel.system("cal","#{nextmonth.month}","#{nextmonth.year}") end |