Class: PivotalShell::Commands::Update
- Inherits:
-
PivotalShell::Command
- Object
- PivotalShell::Command
- PivotalShell::Commands::Update
- Defined in:
- lib/pivotal_shell/commands/update.rb
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(options) ⇒ Update
constructor
A new instance of Update.
Constructor Details
#initialize(options) ⇒ Update
Returns a new instance of Update.
3 4 5 6 7 8 9 10 11 12 13 |
# File 'lib/pivotal_shell/commands/update.rb', line 3 def initialize() opts = OptionParser.new do |opts| opts. = "Update 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/update.rb', line 15 def execute PivotalShell::Configuration.cache.refresh end |