Class: RhoDevelopment::SubscriberFullBundleUpdateBuildingTask
- Inherits:
-
LiveUpdateTask
- Object
- LiveUpdateTask
- RhoDevelopment::SubscriberFullBundleUpdateBuildingTask
- 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) ⇒ SubscriberFullBundleUpdateBuildingTask
constructor
A new instance of SubscriberFullBundleUpdateBuildingTask.
Methods inherited from LiveUpdateTask
Constructor Details
#initialize(aSubscriber, aFilename) ⇒ SubscriberFullBundleUpdateBuildingTask
Returns a new instance of SubscriberFullBundleUpdateBuildingTask.
119 120 121 122 |
# File 'lib/build/development/live_update_task.rb', line 119 def initialize(aSubscriber, aFilename) @subscriber = aSubscriber @filename = aFilename end |
Class Method Details
.fromHash(aHash) ⇒ Object
113 114 115 116 117 |
# File 'lib/build/development/live_update_task.rb', line 113 def self.fromHash(aHash) subscriber = Configuration::subscriber_by_ip(aHash['ip']) filename = aHash['filename'] self.new(subscriber, filename) end |
.taskName ⇒ Object
109 110 111 |
# File 'lib/build/development/live_update_task.rb', line 109 def self.taskName 'BuildFullBundleUpdateForSubscriber' end |
Instance Method Details
#action ⇒ Object
124 125 126 127 |
# File 'lib/build/development/live_update_task.rb', line 124 def action server = BuildServer.new server.build_full_bundle_for_subscriber(@subscriber, @filename) end |