Class: Chef::Knife::SoloDataBagList

Inherits:
Chef::Knife show all
Includes:
SoloDataBagHelpers
Defined in:
lib/chef/knife/solo_data_bag_list.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from SoloDataBagHelpers

#bag_item_path, #bag_path, #bags_path, #convert_json_string, #persist_bag_item, #secret_key, #secret_path, #should_be_encrypted?, #validate_bag_name_provided, #validate_bags_path_exists, #validate_json_string, #validate_multiple_secrets_were_not_provided

Instance Attribute Details

#bag_nameObject (readonly)

Returns the value of attribute bag_name.



14
15
16
# File 'lib/chef/knife/solo_data_bag_list.rb', line 14

def bag_name
  @bag_name
end

Instance Method Details

#runObject



20
21
22
23
# File 'lib/chef/knife/solo_data_bag_list.rb', line 20

def run
  ensure_valid_arguments
  output format_for_display(bags)
end