Class: Rake::AutoScalingTask

Inherits:
Task
  • Object
show all
Defined in:
lib/aerosol/rake_task.rb

Instance Method Summary collapse

Instance Method Details

#auto_scalingObject



9
10
11
# File 'lib/aerosol/rake_task.rb', line 9

def auto_scaling
  Aerosol.auto_scaling(name.split(':').last.to_sym)
end

#needed?Boolean

Returns:

  • (Boolean)


5
6
7
# File 'lib/aerosol/rake_task.rb', line 5

def needed?
  !auto_scaling.exists?
end