Class: Chef::DataRegion
- Inherits:
-
Object
- Object
- Chef::DataRegion
- Defined in:
- lib/chef/data_region.rb
Overview
DataRegion class
Defined Under Namespace
Modules: DataQuery
Constant Summary collapse
- NAME =
'chef_data_region'.freeze
- VERSION =
'1.0.6'.freeze
Class Method Summary collapse
-
.add(bag_name, bag_hash) ⇒ Object
Add a bag definition to the set of bags.
-
.bags ⇒ Object
Return the configured data bags.
Class Method Details
.add(bag_name, bag_hash) ⇒ Object
Add a bag definition to the set of bags
21 22 23 |
# File 'lib/chef/data_region.rb', line 21 def self.add(bag_name, bag_hash) @bags[bag_name] = bag_hash end |
.bags ⇒ Object
Return the configured data bags
16 17 18 |
# File 'lib/chef/data_region.rb', line 16 def self.bags @bags end |