lib/percheron/stack.rb in percheron-0.3.2 vs lib/percheron/stack.rb in percheron-0.4.0
- old
+ new
@@ -28,14 +28,11 @@
{}
end
end
def container_configs
- stack_config.containers.inject({}) do |all, container|
- all[container.name] = container unless all[container.name]
- all
- end
+ stack_config.containers.to_hash_by_key(:name)
end
def containers
containers = {}
stack_config.containers.each do |container|
@@ -59,11 +56,11 @@
def create!
exec_on_containers { |container| container.create! }
end
- def recreate!(bypass_auto_recreate: false)
- exec_on_containers { |container| container.recreate!(bypass_auto_recreate: bypass_auto_recreate) }
+ def recreate!(force_recreate: false, force_auto_recreate: false)
+ exec_on_containers { |container| container.recreate!(force_recreate: force_recreate, force_auto_recreate: force_auto_recreate) }
end
def valid?
Validators::Stack.new(self).valid?
end