lib/percheron/config.rb in percheron-0.3.2 vs lib/percheron/config.rb in percheron-0.4.0
- old
+ new
@@ -13,13 +13,10 @@
docker_setup!
self
end
def stacks
- contents.stacks.inject({}) do |all, stack_config|
- all[stack_config.name] = stack_config unless all[stack_config.name]
- all
- end
+ contents.stacks.to_hash_by_key(:name)
end
def file_base_path
file.dirname
end