Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

+ passing in hashes as config is possible

  • Loading branch information...
commit 5f1acd9760aec88208186027758cf23b2b5794f3 1 parent 2204cc8
@floere floere authored
View
10 spec/files/complex/config/nodes/staging/complex.rb
@@ -23,14 +23,14 @@
# Example: Configuration is accessible.
#
- # cfg.cache address: cfg[:server][:internal_ip]
- #
- # TODO Hashes need to be possible.
- #
- cfg.cache do
+ cfg.cache1 do
address cfg[:server][:internal_ip]
end
+ # Example: Passing in Hashes is possible
+ #
+ cfg.cache2 address: cfg[:server][:internal_ip]
+
# Example: Block for later execution?
#
# Note: I did not see the pressing point when we can write,
View
5 spec/integration/complex_spec.rb
@@ -38,7 +38,10 @@
:internal_net => "10",
:context => 20
},
- :cache => {
+ :cache1 => {
+ :address => "1.1.1.1"
+ },
+ :cache2 => {
:address => "1.1.1.1"
},
:recipes => ["app::install", "app::deploy"]
View
5 spec/integration/loader_spec.rb
@@ -35,7 +35,10 @@
:internal_net => "10",
:context => 20
},
- :cache => {
+ :cache1 => {
+ :address => "1.1.1.1"
+ },
+ :cache2 => {
:address => "1.1.1.1"
},
:recipes => ["app::install", "app::deploy"]
Please sign in to comment.
Something went wrong with that request. Please try again.