Skip to content

Instantly share code, notes, and snippets.

@chadoh
Created July 3, 2011 14:38
Show Gist options
  • Save chadoh/1062283 to your computer and use it in GitHub Desktop.
Save chadoh/1062283 to your computer and use it in GitHub Desktop.
Fog.mock!
Fog.credentials_path = Rails.root.join 'config/fog_credentials.yml'
connection = Fog::Storage.new provider: 'AWS'
connection.directories.create key: 'buckets-r-us'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment