From d5acb3294f16337c59762be26188c5df7f4aee0c Mon Sep 17 00:00:00 2001 From: Sunny Dubey Date: Mon, 27 Oct 2014 13:19:15 -0400 Subject: [PATCH 1/2] Update example to only do top level role searching. This is more concise than the expanded search. --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index dec9e41..f01d3de 100644 --- a/README.md +++ b/README.md @@ -22,9 +22,9 @@ A normal `deploy.rb` in an app using capistrano defines a roles like this: Using capistrano-chef, you can do this: require 'capistrano/chef' - chef_role :web 'roles:web' - chef_role :db, 'roles:database_master', :primary => true, - :attribute => :private_ip, + chef_role :web 'role:web' + chef_role :db, 'role:database_master', :primary => true, + :attribute => :private_ip, :limit => 1 Use a Hash to get a specific network interface: From 8e557f2d3d7cd1d893650fa3c560b14925102b26 Mon Sep 17 00:00:00 2001 From: Sunny Dubey Date: Mon, 27 Oct 2014 13:21:30 -0400 Subject: [PATCH 2/2] Fix whitespace --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index f01d3de..ec2572f 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ Using capistrano-chef, you can do this: chef_role :web 'role:web' chef_role :db, 'role:database_master', :primary => true, :attribute => :private_ip, - :limit => 1 + :limit => 1 Use a Hash to get a specific network interface: (the Hash must be in the form of { 'interface-name' => 'network-family-name' })