opsicle 2.0.1 → 2.0.2

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1401401bfd3261a21d4625e88dac8de425d355d8
4
- data.tar.gz: 720b59ad378d4cf9c51d5d85183651e6f9270f4b
3
+ metadata.gz: 28e633711e529c0fbd1aa244ad2d91737f0bfc2c
4
+ data.tar.gz: 8327ed68f3943024ebda08aa1d46cd25edd26cc0
5
5
  SHA512:
6
- metadata.gz: c39c4868df2325522a184646ca39d12e88370cf438187be508e149ce684e9c7439582b05e3c80f5556038070d2fae28ce0f68f9151ca42bdd5638f71633c42c8
7
- data.tar.gz: 7013c01a65830d296d6fe8cf506b7f2af39e3e6eab40100e0c222c6e987cce15ac2b5b10dc96deda62d0f724a6630684848d04c36f675ef8eb66c8e2770fcdf6
6
+ metadata.gz: 6e8f8d045efe127e29a74f187388be4a2c715b63c49e33198f23aefbd4ea3ec4dd887d4a74c27de893d6ebc928b207f5da916dd85a283365de803cabfa4831d0
7
+ data.tar.gz: c9d394a670b3eba259d0a4bff78b72906a8101b1f622da52d0efb060cc084eeefb143fbe0fe4bf483a6ceef45d15bd64b3fe83825917a5752a8b685090451616
@@ -3,9 +3,12 @@ require 'yaml'
3
3
  module Opsicle
4
4
  module CredentialConverterHelper
5
5
  def convert_fog_to_aws
6
+ directory_path = File.expand_path("~/.aws/")
7
+ file_path = directory_path + "/credentials"
8
+
6
9
  # open/make new credentials file, read, and gather the groups of aws credentials already in file
7
- cred_path = File.expand_path("~/.aws/credentials")
8
- cred_file = File.open(cred_path, "a+")
10
+ Dir.mkdir(directory_path) unless File.directory?(directory_path)
11
+ cred_file = File.open(file_path, "a+")
9
12
  cred_text = cred_file.read
10
13
  cred_groups = cred_text.scan(/\[([\S]*)\]/).flatten
11
14
 
@@ -1,3 +1,3 @@
1
1
  module Opsicle
2
- VERSION = "2.0.1"
2
+ VERSION = "2.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opsicle
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 2.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andy Fleener
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-08-05 00:00:00.000000000 Z
12
+ date: 2016-08-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: aws-sdk
@@ -274,7 +274,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
274
274
  version: '0'
275
275
  requirements: []
276
276
  rubyforge_project:
277
- rubygems_version: 2.4.8
277
+ rubygems_version: 2.4.6
278
278
  signing_key:
279
279
  specification_version: 4
280
280
  summary: An opsworks specific abstraction on top of the aws sdk
@@ -303,4 +303,3 @@ test_files:
303
303
  - spec/opsicle/s3_bucket_spec.rb
304
304
  - spec/opsicle/user_profile_spec.rb
305
305
  - spec/spec_helper.rb
306
- has_rdoc: