lib/ridley/resources/data_bag.rb in ridley-0.6.3 vs lib/ridley/resources/data_bag.rb in ridley-0.7.0.beta
- old
+ new
@@ -23,13 +23,11 @@
klass.send(fun, connection, data_bag, *args, &block)
end
end
# @author Jamie Winsor <jamie@vialstudios.com>
- class DataBag
- include Ridley::Resource
-
+ class DataBag < Ridley::Resource
class << self
# @param [Ridley::Connection] connection
# @param [String, #chef_id] object
#
# @return [nil, Ridley::DataBag]
@@ -54,11 +52,11 @@
end
set_chef_id "name"
set_resource_path "data"
- attribute :name
- validates_presence_of :name
+ attribute :name,
+ required: true
def item
DBIChainLink.new(self, connection)
end