Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Correct minor typo in README: 'aws_access_key' -> 'aws_access_key_id'

- Added more comments to example code in README
  • Loading branch information...
commit a2a78c4c9ecc5db61d57270f176ec9841c5cc973 1 parent ad2bfe5
@sumbach sumbach authored
Showing with 7 additions and 4 deletions.
  1. +7 −4 README.md
View
11 README.md
@@ -8,12 +8,15 @@ Assumes Fog's API for connecting to and creating instances.
Provision and converge an instance:
```ruby
-connection = Fog::Compute.new :provider => 'AWS', :aws_access_key => 'KEY',
- :aws_secret_access_key => 'SECRET'
+connection = Fog::Compute.new(:provider => 'AWS', :aws_access_key_id => 'KEY', :aws_secret_access_key => 'SECRET')
+
# Second arg is a hash passed to Fog::Compute::AWS::Servers.create
-instance = Slushy::Instance.launch connection, :flavor_id => 'm1.large', :more => :keys
+instance = Slushy::Instance.launch(connection, :flavor_id => 'm1.large', :more => :keys)
+
+# Install ruby and Chef
instance.bootstrap
-# Point at directory containing Chef cookbooks
+
+# Converge using your Chef cookbooks
instance.converge Rails.root.join('provision')
```
Please sign in to comment.
Something went wrong with that request. Please try again.