class Shell::NamedDataBagWrapper
Public Class Methods
new(databag_name)
click to toggle source
# File lib/chef/shell/model_wrapper.rb, line 99 def initialize(databag_name) @model_symbol = @databag_name = databag_name end
Public Instance Methods
show(item)
click to toggle source
# File lib/chef/shell/model_wrapper.rb, line 105 def show(item) Chef::DataBagItem.load(@databag_name, item) end
Private Instance Methods
list_objects()
click to toggle 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