clouds 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/clouds/version.rb +1 -1
- data/lib/clouds.rb +0 -14
- metadata +1 -1
data/lib/clouds/version.rb
CHANGED
data/lib/clouds.rb
CHANGED
@@ -6,20 +6,6 @@ require 'inifile'
|
|
6
6
|
require 'fileutils'
|
7
7
|
require 'yaml'
|
8
8
|
|
9
|
-
# shamelessly copied from www.dzone.com/snippets/generating-yaml-hashes-sorted
|
10
|
-
class Hash
|
11
|
-
# Replacing the to_yaml function so it'll serialize hashes sorted (by their keys)
|
12
|
-
def to_yaml( opts = {} )
|
13
|
-
YAML::quick_emit( object_id, opts ) do |out|
|
14
|
-
out.map( taguri, to_yaml_style ) do |map|
|
15
|
-
sort.each do |k, v| # <-- here's my addition (the 'sort')
|
16
|
-
map.add( k, v )
|
17
|
-
end
|
18
|
-
end
|
19
|
-
end
|
20
|
-
end
|
21
|
-
end
|
22
|
-
|
23
9
|
def configure(profile=nil)
|
24
10
|
if profile.nil? && ENV['AWS_ACCESS_KEY_ID'] && ENV['AWS_SECRET_ACCESS_KEY']
|
25
11
|
@aws_access_key_id = ENV['AWS_ACCESS_KEY_ID']
|