Class: Breeze::Elasticache

Inherits:
Veur
  • Object
show all
Defined in:
lib/breeze/tasks/elasticache.rb

Instance Method Summary collapse

Methods inherited from Veur

inherited

Instance Method Details

#create(name) ⇒ Object



7
8
9
10
11
# File 'lib/breeze/tasks/elasticache.rb', line 7

def create(name)
  options.update(:id => name)
  # puts "elasticache options: #{options}"
  elasticache.clusters.create(options)
end

#destroy(name) ⇒ Object



15
16
17
18
19
20
21
# File 'lib/breeze/tasks/elasticache.rb', line 15

def destroy(name)
  cluster = elasticache.clusters.get(name)
  if force_or_accept?("Destroy cache cluster #{name}?")
    cluster.destroy
    cluster.reload
  end
end