Class: KnifeUploader::UploaderDataBagUpload

Inherits:
UploaderDataBagCommand show all
Includes:
BaseCommandMixin
Defined in:
lib/chef/knife/uploader_data_bag.rb

Instance Method Summary collapse

Methods included from BaseCommandMixin

included

Methods inherited from UploaderDataBagCommand

#data_bag_item_id_from_path, #diff_data_bag_item, #ensure_data_bag_dir_exists, #get_data_bag_dir, #list_data_bag_item_files, #list_data_bag_item_ids, #load_data_bag_item_file, #override_attributes, #set_data_bag_items, #time

Methods inherited from BaseCommand

#debug, #diff, #diff_color, #get_chef_repo_path, #get_knife_config_path, #initialize, #locate_config_value, #parsed_knife_config, #report_errors, #ridley, #run

Constructor Details

This class inherits a constructor from KnifeUploader::BaseCommand

Instance Method Details

#run_internalObject



297
298
299
300
301
302
303
304
305
306
307
# File 'lib/chef/knife/uploader_data_bag.rb', line 297

def run_internal
  unless name_args.size == 1
    ui.fatal("Exactly one argument expected")
    show_usage
    exit 1
  end

  report_errors do
    report_errors { set_data_bag_items(name_args.first) }
  end
end