Created
August 4, 2011 17:21
-
-
Save gondoi/1125679 to your computer and use it in GitHub Desktop.
nil or not to nil
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
default[:username][:password] = nil |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ "username" : | |
{ "password" : "hash" }} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
user "username" do | |
password node[:username][:password] | |
not_if do node[:username][:password].nil? end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment