class Pantry::Chef::UploadDataBag
Upload a data bag file to the server
Public Instance Methods
prepare_message(options)
click to toggle source
Calls superclass method
# File lib/pantry/chef/upload_data_bag.rb, line 28 def prepare_message(options) options[:type] ||= File.basename(File.dirname(file_to_upload)) Pantry.ui.say("Uploading data bag #{File.basename(file_to_upload)}...") super end
required_options()
click to toggle source
# File lib/pantry/chef/upload_data_bag.rb, line 20 def required_options %i(application) end
upload_directory(options)
click to toggle source
# File lib/pantry/chef/upload_data_bag.rb, line 24 def upload_directory(options) Pantry.root.join("applications", options[:application], "chef", "data_bags", options[:type]) end