class Shell::NamedDataBagWrapper
Public Class Methods
Source
# File lib/chef/shell/model_wrapper.rb, line 99 def initialize(databag_name) @model_symbol = @databag_name = databag_name end
Public Instance Methods
Source
# File lib/chef/shell/model_wrapper.rb, line 105 def show(item) Chef::DataBagItem.load(@databag_name, item) end
Private Instance Methods
Source
# File lib/chef/shell/model_wrapper.rb, line 111 def list_objects all_items = [] Chef::Search::Query.new.search(@databag_name) do |item| all_items << item end all_items end