Class: PivotalShell::Commands::Reload
- Inherits:
-
PivotalShell::Command
- Object
- PivotalShell::Command
- PivotalShell::Commands::Reload
- Defined in:
- lib/pivotal_shell/commands/reload.rb
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(options) ⇒ Reload
constructor
A new instance of Reload.
Constructor Details
#initialize(options) ⇒ Reload
Returns a new instance of Reload.
3 4 5 6 7 8 9 10 11 12 13 |
# File 'lib/pivotal_shell/commands/reload.rb', line 3 def initialize() opts = OptionParser.new do |opts| opts. = "Completely reload the stories database from Pivotal Tracker" opts.on_tail('--help', 'Show this help') do puts opts exit end opts.parse!() end end |
Instance Method Details
#execute ⇒ Object
15 16 17 |
# File 'lib/pivotal_shell/commands/reload.rb', line 15 def execute PivotalShell::Configuration.cache.reload end |