miasma-aws 0.1.18 → 0.1.20

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: dec42282eff92d4366b4b357da8d9cd85b47d649
4
- data.tar.gz: e1ae8523f2b7dcbf098cd0f51b0907e9242c549a
3
+ metadata.gz: 2a5b3fe06aa37c3bdc942bceffde1af07852cc74
4
+ data.tar.gz: 32e6a2752c4da9a2003da5bba5cf00e9c19ae83a
5
5
  SHA512:
6
- metadata.gz: c5d8fec672a5f427edd2bdda8153b1a0c81672beca3edd10396946dda37467c7459625f28d2540affddc77f7e1e2e8091970d4629bc12df90e5825909838031d
7
- data.tar.gz: a67cfa892b58da3dfa4dbf16096b4531ebf9eb33979ba2709f3eb4986a038f13b84c314c48b3488b59cff2d2c910eae0ec5328b47f3b3e96b0f55cf7aeaedde8
6
+ metadata.gz: 8ad263d55d74bb5058fcd0ac9b89704605ceb4800976b5519b63b71d2f20bd90d55cfde05fa92ecaba303605a787cdad97f8c8935529555aebe0af6db6aef81c
7
+ data.tar.gz: b4fd118303c565890fff9015e9419fbd228c81f4e220f0bb24d39e2f2ade212d2dd0a3f6665827198f82648d2e7c21bd9f90c505408c85a59b18d25323f77350
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ # v0.1.20
2
+ * Fix credential loading bug (#11)
3
+
1
4
  # v0.1.18
2
5
  * Make aws file parsing more robust
3
6
  * Fix aws config file parsing section name generation (#10)
@@ -339,12 +339,12 @@ module Miasma
339
339
  attribute :aws_config_file, String, :required => true, :default => File.join(Dir.home, '.aws/config')
340
340
  attribute :aws_access_key_id, String, :required => true
341
341
  attribute :aws_secret_access_key, String, :required => true
342
- attribute :aws_iam_instance_profile, [TrueClass, FalseClass], :default => true
342
+ attribute :aws_iam_instance_profile, [TrueClass, FalseClass], :default => false
343
343
  attribute :aws_region, String, :required => true
344
344
  attribute :aws_host, String
345
345
  attribute :aws_bucket_region, String
346
346
  attribute :api_endpoint, String, :required => true, :default => 'amazonaws.com'
347
- attribute :euca_compat, [String, Symbol], :allowed_values => [:path, :dns], :coerce => lambda{|v| v.to_sym}
347
+ attribute :euca_compat, [String, Symbol], :allowed_values => [:path, :dns], :coerce => lambda{|v| v.is_a?(String) ? v.to_sym : v}
348
348
  attribute :euca_dns_map, Smash, :coerce => lambda{|v| v.to_smash}, :default => Smash.new
349
349
  attribute :ssl_enabled, [TrueClass, FalseClass], :default => true
350
350
 
@@ -412,11 +412,11 @@ module Miasma
412
412
  # @param creds [Hash]
413
413
  # @return [TrueClass]
414
414
  def load_instance_credentials!(creds)
415
- role = HTTP.get(self.const_get(:INSTANCE_PROFILE_HOST)).body.to_s.strip
415
+ role = HTTP.get(self.class.const_get(:INSTANCE_PROFILE_HOST)).body.to_s.strip
416
416
  data = HTTP.get(
417
417
  [
418
- self.const_get(:INSTANCE_PROFILE_HOST),
419
- self.const_get(:INSTANCE_PROFILE_PATH),
418
+ self.class.const_get(:INSTANCE_PROFILE_HOST),
419
+ self.class.const_get(:INSTANCE_PROFILE_PATH),
420
420
  role
421
421
  ].join('/')
422
422
  ).body
@@ -1,4 +1,4 @@
1
1
  module MiasmaAws
2
2
  # Current library version
3
- VERSION = Gem::Version.new('0.1.18')
3
+ VERSION = Gem::Version.new('0.1.20')
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: miasma-aws
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.18
4
+ version: 0.1.20
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Roberts
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-08-25 00:00:00.000000000 Z
11
+ date: 2015-08-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: miasma