Class: DeepThought::Deploy

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
lib/deep_thought/models/deploy.rb

Instance Method Summary collapse

Instance Method Details

#max_attemptsObject



23
24
25
# File 'lib/deep_thought/models/deploy.rb', line 23

def max_attempts
  return 1
end

#performObject



19
20
21
# File 'lib/deep_thought/models/deploy.rb', line 19

def perform
  DeepThought::Deployer.execute(self)
end

#queueObject



13
14
15
16
17
# File 'lib/deep_thought/models/deploy.rb', line 13

def queue
  Delayed::Job.enqueue self

  DeepThought::Scaler.scale
end