Class: RhoDevelopment::SubscriberFullUpdateNotifyingTask
- Inherits:
-
LiveUpdateTask
- Object
- LiveUpdateTask
- RhoDevelopment::SubscriberFullUpdateNotifyingTask
- Defined in:
- lib/build/development/live_update_task.rb
Class Method Summary collapse
Instance Method Summary collapse
- #action ⇒ Object
- #dispatchToUrl(anUri) ⇒ Object
-
#initialize(aSubscriber, aFilename) ⇒ SubscriberFullUpdateNotifyingTask
constructor
A new instance of SubscriberFullUpdateNotifyingTask.
Methods inherited from LiveUpdateTask
Constructor Details
#initialize(aSubscriber, aFilename) ⇒ SubscriberFullUpdateNotifyingTask
Returns a new instance of SubscriberFullUpdateNotifyingTask.
288 289 290 291 |
# File 'lib/build/development/live_update_task.rb', line 288 def initialize(aSubscriber, aFilename) @subscriber = aSubscriber @filename = aFilename end |
Class Method Details
.fromHash(aHash) ⇒ Object
282 283 284 285 286 |
# File 'lib/build/development/live_update_task.rb', line 282 def self.fromHash(aHash) subscriber = Configuration::subscriber_by_ip(aHash['ip']) filename = aHash['filename'] self.new(subscriber, filename) end |
.taskName ⇒ Object
278 279 280 |
# File 'lib/build/development/live_update_task.rb', line 278 def self.taskName 'NotifySubscriberAboutFullBundleUpdate' end |
Instance Method Details
#action ⇒ Object
293 294 295 |
# File 'lib/build/development/live_update_task.rb', line 293 def action @subscriber.full_notify(@filename) end |