lib/dm-paperclip/storage/s3.rb
# Libraries and mixins that provide S3 support
Libraries and mixins that provide S3 support
Libraries and mixins that provide S3 support
def find_credentials creds
        case creds
        when File
          YAML::load(ERB.new(File.read(creds.path)).result)
        when String, Pathname
          YAML::load(ERB.new(File.read(creds)).result)
        when Hash
          creds
        else
          raise ArgumentError, "Credentials are not a path, file, or hash."
        end
      end
def find_credentials creds case creds when File YAML :: load ( ERB . new ( File . read ( creds . path ) ) . result ) when String , Pathname YAML :: load ( ERB . new ( File . read ( creds ) ) . result ) when Hash creds else raise ArgumentError , "Credentials are not a path, file, or hash." end end
Libraries and mixins that provide S3 support
Libraries and mixins that provide S3 support
creds
<not_specific>