clouds 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/clouds/version.rb +1 -1
- data/lib/clouds.rb +14 -0
- metadata +2 -2
data/lib/clouds/version.rb
CHANGED
data/lib/clouds.rb
CHANGED
@@ -6,6 +6,20 @@ 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
|
+
|
9
23
|
def configure(profile=nil)
|
10
24
|
if profile.nil? && ENV['AWS_ACCESS_KEY_ID'] && ENV['AWS_SECRET_ACCESS_KEY']
|
11
25
|
@aws_access_key_id = ENV['AWS_ACCESS_KEY_ID']
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: clouds
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-05-
|
12
|
+
date: 2014-05-28 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|