Class: DeepThought::Deploy
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- DeepThought::Deploy
- Defined in:
- lib/deep_thought/models/deploy.rb
Instance Method Summary collapse
Instance Method Details
#max_attempts ⇒ Object
23 24 25 |
# File 'lib/deep_thought/models/deploy.rb', line 23 def max_attempts return 1 end |
#perform ⇒ Object
19 20 21 |
# File 'lib/deep_thought/models/deploy.rb', line 19 def perform DeepThought::Deployer.execute(self) end |
#queue ⇒ Object
13 14 15 16 17 |
# File 'lib/deep_thought/models/deploy.rb', line 13 def queue Delayed::Job.enqueue self DeepThought::Scaler.scale end |