lib/percheron/stack.rb in percheron-0.3.0 vs lib/percheron/stack.rb in percheron-0.3.1
- old
+ new
@@ -19,9 +19,17 @@
all[stack.name] = stack
end
all
end
+ def self.get(config, stack_name)
+ if stack = all(config)[stack_name]
+ { stack.name => stack }
+ else
+ {}
+ end
+ end
+
def container_configs
stack_config.containers.inject({}) do |all, container|
all[container.name] = container unless all[container.name]
all
end