Skip to content

Commit

Permalink
coleslaw-s3::*credentials* was useless and not setting the important …
Browse files Browse the repository at this point in the history
…variable zs3:*credentials*. Now seting correctly in the correct package zs3.
  • Loading branch information
herdigiorgi committed Jun 7, 2015
1 parent 5f31006 commit c625aa1
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions plugins/s3.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,6 @@

(in-package :coleslaw-s3)

(defparameter *credentials* nil
"The credentials to authenticate with Amazon Web Services.
Stored in a file with the access key on the first line
and the secret key on the second.")

(defparameter *content-type-map* '(("html" . "text/html")
("css" . "text/css")
("png" . "image/png")
Expand Down Expand Up @@ -53,5 +48,7 @@ and the secret key on the second.")
(zs3:delete-objects (stale-keys) *bucket*)))

(defun enable (&key auth-file bucket)
(setf *credentials* (zs3:file-credentials auth-file)
"AUTH-FILE: Path to file with the access key on the first line and the secret
key on the second."
(setf zs3:*credentials* (zs3:file-credentials auth-file)
*bucket* bucket))

0 comments on commit c625aa1

Please sign in to comment.