1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
Commit graph

18 commits

Author SHA1 Message Date
geemus
1a3461d5c6 remove specs (likely from a bad merge) 2012-07-12 16:23:29 -05:00
Hunter Haugen
d25b39405f [core] @credential should always be a symbol
Similar to #504, say your ~/.fog had multiple stanzas:

```yaml
:default:
  :aws_access_key_id: aaa
test:
  :aws_access_key_id: bbb
:prod:
  :aws_access_key_id: ccc
```

By default, fog will look for either the credential *symbol* `:default` or for the *string* stored in `FOG_CREDENTIAL` (in `lib/fog/core/credentials.rb` method `self.credential`). When the fog credentials file given above is read in, it’s passed through `self.symbolize_credentials` which makes *symbols* out of all the keys (so `prod`, `test`, and `default` will all be symbols) and saves the list to credentials then looks for `credentials[credential]` which is indexing a string in a hash of symbols.

Any value that `@credential` is set to should be a symbol, because the hash keys will only be symbols.
2011-11-16 09:51:43 -08:00
Nathan Sutton
eb86ba780b Adding a method to unmock Fog. Addresses issue #594 2011-11-09 11:30:33 -08:00
Peter Meier
321783ff56 [core] treat boolean values as a boolean 2011-10-03 19:36:38 +02:00
geemus
d3073af15a [core] properly fix credentials tests 2011-09-23 16:44:39 -05:00
geemus
1e72d3b600 Revert "[core] make sure credentials tests properly reset after completion"
This reverts commit 7ac7bbe3af.
2011-09-23 16:43:34 -05:00
geemus
7ac7bbe3af [core] make sure credentials tests properly reset after completion 2011-09-23 16:31:18 -05:00
Aaron Suggs
e48ac6e8c3 [core] Allow FOG_CREDENTIAL env variable for config
Say your ~/.fog had multiple stanzas:
    :default:
      :aws_access_key_id: aaa
    test:
      :aws_access_key_id: bbb
    prod:
      :aws_access-key_id: ccc

Choose a stanza with an environment variable:
   $ FOG_CREDENTIAL=prod fog
2011-09-10 13:42:55 -04:00
Brian Hartsock
72778886a1 Fixed #444 - Unable to squash kvp with false values 2011-07-20 18:18:05 -04:00
Wesley Beary
ddfe5d5b34 Merge pull request #419 from jc00ke/master
Fixes non-absolute exception for File.expand_path
2011-07-13 11:40:48 -07:00
jc00ke
64425e71e0 Return nil if HOME is non-absolute. Fixes #397 2011-07-13 11:17:00 -07:00
Dylan Egan
47ca2bc45a Clean up timeout and add tests. 2011-07-12 13:05:54 +10:00
Aaron Suggs
0e5ed656c3 [core] Fix responds_to test helper.
As per discussion on #305.

Also clean up output for parser test.
2011-05-17 17:37:56 -04:00
Aaron Suggs
e0b8606d85 [core] Fixed credential tests
Tests behavior when ENV['HOME'] is not a directory.
2011-05-13 18:14:47 -04:00
Aaron Suggs
ff72d4c647 [core] Add test for Fog::Parsers::Base
Test multiline and nested values.
2011-05-12 17:48:44 -04:00
Lee Jensen
8dfc9beb0d Deal with missing FOG_RC/HOME env vars better 2011-03-30 17:50:35 -06:00
geemus
a5d65fc26e [core] fix attributes to properly accomodate aliases 2010-12-16 11:25:31 -08:00
geemus
b689650666 more attributes spec to tests, fix attribute names 2010-12-15 14:05:55 -08:00