tacoma 1.0.2 → 1.0.3

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: 5b3322c88bf7f6a1f47f281617cadd049e76abf9
4
- data.tar.gz: 06b2ff13c45e2762602e76c2da15d336516fd1d9
3
+ metadata.gz: 57e5d724bfb9469a9364b7c11a8520d991e72aa3
4
+ data.tar.gz: 00fc0b60018964d255e988633f8fc0e808078921
5
5
  SHA512:
6
- metadata.gz: 2e365906d7ae6ee658a669eee13409274fb731ab048bbac5b06f27174cb6570a22d438e77b1afa22b9b3ffb5a5ae788fb5d31db9225851b65b108012a88a769b
7
- data.tar.gz: f79a3b6f993a63b66f1361cbf4beda0b5099f6f6b681f3774aaaf114bcd3f4528ba1328a67603fe95d8b455f1dc14db2b3f04d5f7d16eac079c3fa9b2e82a533
6
+ metadata.gz: dc7eb5a903b905036de48a5676e41acba4119118715dd5dd834327192bf3fcc8645ca9975ec111c79224575cce99faeb5a8fae364edf207f3ceff7ac0b3bad9a
7
+ data.tar.gz: 3ed33cd6408816bf016067a6283a0553e897273fdc84b8faaee3b6a5d4ae8434752377c4a2958d80d281df525d2778c79f1a5dfd0c308ec5dc90d588e2a6e259
data/README.md CHANGED
@@ -33,12 +33,17 @@ And it will list all the configured entries. Running
33
33
 
34
34
  tacoma switch project
35
35
 
36
- Will display the export commands for the AWS_SECRET_ACCESS_KEY, AWS_ACCESS_KEY_ID credential environment variables, will add the specified identity file into the SSH agent, and will generate configuration files for the different available tools. At the time of this release the only provider is Fog, which should work with Capistrano's capify-ec2.
36
+ Will display the export commands for the AWS_SECRET_ACCESS_KEY, AWS_ACCESS_KEY_ID credential environment variables, will add the specified identity file into the SSH agent, and will generate configuration files for the supported tools, which at this time are
37
+
38
+ - [Fog](https://github.com/fog/fog), which should work with Capistrano's capify-ec2.
39
+ - [Boto](https://github.com/boto/boto)
40
+
37
41
 
38
42
  ## TODO
39
43
 
40
44
  - Check for errors in the `tacoma.yml` file
41
- - Add other AWS tool providers (Knife, Boto, AWS cli, S3cmd, ...)
45
+ - Add other AWS tool providers (Knife, AWS cli, S3cmd, ...)
46
+ - Honor the different optional environment vars for the different config files (i.e `FOG_RC`)
42
47
 
43
48
 
44
49
  ## THANKS
@@ -54,10 +54,12 @@ module Tacoma
54
54
  @aws_access_key_id = Tool.aws_access_key_id
55
55
  @repo = Tool.repo
56
56
 
57
- # load fog configuration
58
- fog_template_path = Pathname.new("#{self.class.source_root}/../template/fog").realpath.to_s
59
- fog_file_path = File.join(Dir.home,".fog")
60
- template fog_template_path, fog_file_path, :force => true
57
+ # set configurations for tools
58
+ {fog: '.fog', boto: '.boto'}.each do |tool, config_path|
59
+ template_path = Pathname.new("#{self.class.source_root}/../template/#{tool}").realpath.to_s
60
+ file_path = File.join(Dir.home, config_path)
61
+ template template_path, file_path, :force => true
62
+ end
61
63
 
62
64
  system("ssh-add #{@aws_identity_file}")
63
65
  end
@@ -1,3 +1,3 @@
1
1
  module Tacoma
2
- VERSION='1.0.2'
2
+ VERSION='1.0.3'
3
3
  end
data/lib/template/boto ADDED
@@ -0,0 +1,6 @@
1
+ # This file was automatically generated by Tacoma at <%= Time.now %>
2
+
3
+ [Credentials]
4
+ aws_access_key_id = <%= @aws_access_key_id %>
5
+ aws_secret_access_key = <%= @aws_secret_access_key %>
6
+
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tacoma
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juan Lupión
@@ -81,6 +81,7 @@ files:
81
81
  - lib/tacoma.rb
82
82
  - lib/tacoma/command.rb
83
83
  - lib/tacoma/version.rb
84
+ - lib/template/boto
84
85
  - lib/template/fog
85
86
  - lib/template/tacoma.yml
86
87
  - tacoma.gemspec