lib/percheron/stack.rb in percheron-0.7.10 vs lib/percheron/stack.rb in percheron-0.7.11
- old
+ new
@@ -13,10 +13,10 @@
end
def self.get(config, name = nil)
stacks = name.nil? ? config.stacks : { name => config.stacks[name] }
stacks.each_with_object({}) do |stack_config, all|
- stack_name, _ = stack_config
+ stack_name = stack_config.shift
stack = new(config, stack_name)
all[stack.name] = stack
end
end