Class: Chef::DataRegion

Inherits:
Object
  • Object
show all
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

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

.bagsObject

Return the configured data bags



16
17
18
# File 'lib/chef/data_region.rb', line 16

def self.bags
  @bags
end