This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "mime/types" | |
require "digest/md5" | |
require "cgi" | |
### see: http://www.mongodb.org/display/DOCS/GridFS+Specification | |
class GridFS | |
## | |
# | |
attr_accessor :prefix |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "mongo" | |
require "open-uri" | |
require "mime/types" | |
require "digest/md5" | |
class Upload | |
## | |
# | |
include Mongoid::Document | |
include Mongoid::Timestamps |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# cookbooks/keymaster/libraries/decrypt.rb | |
module Keymaster | |
module_function | |
def decrypt_data_bag_item(item) | |
Chef::Log.info("yeah !") | |
end | |
end | |
# cookbooks/whatever/metadata.rb |
OlderNewer