Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Update README.md #35

Merged
merged 1 commit into from

2 participants

@adelevie
Collaborator

Shows example for using a Hash instead of a .yml config file. Addresses part of #33

@adelevie adelevie Update README.md
Shows example for using a Hash instead of a .yml config file
a4132d0
@adelevie
Collaborator

No rush to accept this at all. If anything I think this should also include tests for this specific use-case, if you're interested in it. For what it's worth, this is the precise use-case that I want to use this gem for.

@adelevie
Collaborator

Hey, @laurilehmijoki, have you had a chance to look these over? I'd be more than happy to help out as a maintainer of this project if you'd like.

@laurilehmijoki

Hi Alan, your help is most welcome. I'm quite busy with my other commitments, and only occasionally I have time to concentrate on jekyll-s3. I'll add you as a collaborator on the jekyll-s3 GitHub repo.

@adelevie adelevie merged commit 3f3978c into laurilehmijoki:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Apr 9, 2013
  1. @adelevie

    Update README.md

    adelevie authored
    Shows example for using a Hash instead of a .yml config file
This page is out of date. Refresh to see the latest.
Showing with 12 additions and 0 deletions.
  1. +12 −0 README.md
View
12 README.md
@@ -136,6 +136,18 @@ is_headless = true
Jekyll::S3::CLI.new.run('/path/to/your/jekyll-site/_site/', is_headless)
````
+You can also use a basic `Hash` instead of a `_jekyll_s3.yml` file:
+
+```ruby
+config = {
+ "s3_id" => YOUR_AWS_S3_ACCESS_KEY_ID,
+ "s3_secret" => YOUR_AWS_S3_SECRET_ACCESS_KEY,
+ "s3_bucket" => your.blog.bucket.com
+}
+in_headless = true
+Jekyll::S3::Uploader.run('/path/to/your/jekyll-site/_site/', config, in_headless)
+```
+
The code above will assume that you have the `_jekyll_s3.yml` in the directory
`/path/to/your/jekyll-site`.
Something went wrong with that request. Please try again.