README.md in chef-sugar-1.0.1 vs README.md in chef-sugar-1.1.0

- old
+ new

@@ -91,10 +91,11 @@ - `ec2?` - `eucalyptus?` - `gce?` - `linode?` - `openstack?` +- `cloudstack?` - `rackspace?` #### Examples ```ruby template '/tmp/config' do @@ -103,10 +104,23 @@ ipaddress: cloud? ? node['local_ipv4'] : node['public_ipv4'] ) end ``` +### Data Bag +- `encrypted_data_bag_item` - a handy DSL method for loading encrypted data bag items the same way you load a regular data bag item; this requires `Chef::Config[:encrypted_data_bag_secret]` is set! +- `encrypted_data_bag_item_for_environment` - find the data bag entry for the current node's Chef environment. + +#### Examples +```ruby +encrypted_data_bag_item('accounts', 'hipchat') +``` + +```ruby +encrypted_data_bag_item_for_environment('accounts', 'github') +``` + ### IP - `best_ip_for` - determine the best IP address for the given "other" node, preferring local IP addresses over public ones. #### Examples ```ruby @@ -249,10 +263,10 @@ package 'apache2' end # This is equivalent to package 'apache2' do - 'apache2' + action :nothing end.run_action(:install) ``` ```ruby before 'service[apache2]' do