cyoi 0.11.1 → 0.11.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: f40ad034c190187459af10b580876f6fa0d79fed
4
- data.tar.gz: 1d7dbe001b4f2178d0637cbe14b0161e67c9032d
3
+ metadata.gz: 65745e0fecf89e39b10ea1637266b6d2068035e6
4
+ data.tar.gz: 78bc1bb11f29d4856f806fc98b65ee7a562525bb
5
5
  SHA512:
6
- metadata.gz: 0970dc12135136b9b493b883536573851af110f58ea9582ca7820ad04f12d8abaec10b27e6923a9fe2091f4de175bb17c54f0fa0e32a8e864d1e0d3d00a721f7
7
- data.tar.gz: 53cbe081b9d407fb26b9987a9a0d6a533da3736fb45c43b7668133cf78e2a35368854dfd72d75b39864b605a7a57733829b766c793a249426ab73a62c02d09a3
6
+ metadata.gz: 0962060185d439a2d23b4fdf04624caeefd54a825635d0b406f343e6a019da5debec03d779babd73a95d266e136e1b036ba5f87a898ecbcdd93a3472ef078851
7
+ data.tar.gz: ec0c841da483288bc33d2676f3e643e6debd596c39a42f99b43349adaf1cec08938f03d181217e77dd3925b9dc315edcef370c66baa472e46ddab5d2348d722c
data/.travis.yml CHANGED
@@ -1,9 +1,8 @@
1
1
  language: ruby
2
2
  script: bundle exec rake spec:$SUITE
3
3
  rvm:
4
- - ruby-1.9.3
5
4
  # - rbx-19mode
6
- - ruby-2.0.0
5
+ - ruby-2.1.3
7
6
  notifications:
8
7
  email:
9
8
  recipients:
data/ChangeLog.md CHANGED
@@ -7,6 +7,7 @@ v0.11
7
7
 
8
8
  - AWS VPC support - choose a VPC, choose a subnet, an IP is selected.
9
9
  - AWS - Trusty AMIs if looking for an AMI [v0.11.1]
10
+ - AWS - New Germany/Frankfurt region [v0.11.2]
10
11
 
11
12
  v0.10
12
13
  -----
data/README.md CHANGED
@@ -27,10 +27,12 @@ Using provider aws:
27
27
  2. US West (Oregon) Region (us-west-2)
28
28
  3. US West (Northern California) Region (us-west-1)
29
29
  4. EU (Ireland) Region (eu-west-1)
30
- 5. Asia Pacific (Singapore) Region (ap-southeast-1)
31
- 6. Asia Pacific (Sydney) Region (ap-southeast-2)
32
- 7. Asia Pacific (Tokyo) Region (ap-northeast-1)
33
- 8. South America (Sao Paulo) Region (sa-east-1)
30
+ 5. EU (Frankfurt) Region (eu-central-1)
31
+ 6. Asia Pacific (Singapore) Region (ap-southeast-1)
32
+ 7. Asia Pacific (Sydney) Region (ap-southeast-2)
33
+ 8. Asia Pacific (Tokyo) Region (ap-northeast-1)
34
+ 9. South America (Sao Paulo) Region (sa-east-1)
35
+ 10. China (Beijing) Region (cn-north-1)
34
36
  Choose AWS region: 2
35
37
 
36
38
  Access key: KEYGOESHERE
@@ -70,9 +72,9 @@ gem "cyoi"
70
72
  Contributing
71
73
  ------------
72
74
 
73
- 1. Fork it
74
- 2. Create your feature branch (`git checkout -b my-new-feature`)
75
- 3. Commit your changes (`git commit -am 'Add some feature'`)
76
- 4. Push to the branch (`git push origin my-new-feature`)
77
- 5. Create new Pull Request
78
- 6. Send [@drnic](https://github.com/drnic) a big bag of Doritos
75
+ 1. Fork it
76
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
77
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
78
+ 4. Push to the branch (`git push origin my-new-feature`)
79
+ 5. Create new Pull Request
80
+ 6. Send [@drnic](https://github.com/drnic) a big bag of Doritos
@@ -27,8 +27,8 @@ module Cyoi::Cli::Helpers::Settings
27
27
  mkdir_p(settings_dir)
28
28
  File.open(settings_path, "w") { |file| file << "--- {}" }
29
29
  end
30
- chmod(0600, settings_path)
31
- chmod(0700, settings_ssh_dir) if File.directory?(settings_ssh_dir)
30
+ FileUtils.chmod(0600, settings_path)
31
+ FileUtils.chmod(0700, settings_ssh_dir) if File.directory?(settings_ssh_dir)
32
32
  ReadWriteSettings.new(settings_path)
33
33
  end
34
34
  end
@@ -26,6 +26,8 @@ class Cyoi::Cli::Image::ImageCliAws < Cyoi::Cli::Image::ImageCliBase
26
26
  "ami-98aa1cf0"
27
27
  when "us-west-1"
28
28
  "ami-736e6536"
29
+ when "eu-central-1"
30
+ "ami-423c0a5f"
29
31
  when "cn-north-1"
30
32
  "ami-e642d0df"
31
33
  when "ap-southeast-2"
@@ -1,3 +1,4 @@
1
+ require "cyoi/providers/constants/aws_constants"
1
2
  require "cyoi/cli/providers/provider_cli"
2
3
  class Cyoi::Cli::Providers::ProviderCliAws < Cyoi::Cli::Providers::ProviderCli
3
4
  def perform_and_return_attributes
@@ -52,17 +53,7 @@ class Cyoi::Cli::Providers::ProviderCliAws < Cyoi::Cli::Providers::ProviderCli
52
53
  protected
53
54
  # http://docs.aws.amazon.com/general/latest/gr/rande.html#region
54
55
  def region_labels
55
- [
56
- { label: "US East (Northern Virginia) Region", code: "us-east-1" },
57
- { label: "US West (Oregon) Region", code: "us-west-2" },
58
- { label: "US West (Northern California) Region", code: "us-west-1" },
59
- { label: "EU (Ireland) Region", code: "eu-west-1" },
60
- { label: "Asia Pacific (Singapore) Region", code: "ap-southeast-1" },
61
- { label: "Asia Pacific (Sydney) Region", code: "ap-southeast-2" },
62
- { label: "Asia Pacific (Tokyo) Region", code: "ap-northeast-1" },
63
- { label: "South America (Sao Paulo) Region", code: "sa-east-1" },
64
- { label: "China (Beijing) Region", code: "cn-north-1" },
65
- ]
56
+ Cyoi::Providers::Constants::AwsConstants.region_labels
66
57
  end
67
58
 
68
59
  def default_region_code
@@ -186,6 +186,8 @@ class Cyoi::Providers::Clients::AwsProviderClient < Cyoi::Providers::Clients::Fo
186
186
  "ami-98aa1cf0"
187
187
  when "us-west-1"
188
188
  "ami-736e6536"
189
+ when "eu-central-1"
190
+ "ami-423c0a5f"
189
191
  when "cn-north-1"
190
192
  "ami-e642d0df"
191
193
  when "ap-southeast-2"
@@ -12,10 +12,12 @@ module Cyoi::Providers::Constants::AwsConstants
12
12
  { label: "US West (Oregon) Region", code: "us-west-2" },
13
13
  { label: "US West (Northern California) Region", code: "us-west-1" },
14
14
  { label: "EU (Ireland) Region", code: "eu-west-1" },
15
+ { label: "EU (Frankfurt) Region", code: "eu-central-1" },
15
16
  { label: "Asia Pacific (Singapore) Region", code: "ap-southeast-1" },
16
17
  { label: "Asia Pacific (Sydney) Region", code: "ap-southeast-2" },
17
18
  { label: "Asia Pacific (Tokyo) Region", code: "ap-northeast-1" },
18
19
  { label: "South America (Sao Paulo) Region", code: "sa-east-1" },
20
+ { label: "China (Beijing) Region", code: "cn-north-1" },
19
21
  ]
20
22
  end
21
23
 
data/lib/cyoi/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Cyoi
2
- VERSION = "0.11.1"
2
+ VERSION = "0.11.2"
3
3
  end
@@ -87,10 +87,11 @@ Using provider AWS
87
87
  2. US West (Oregon) Region (us-west-2)
88
88
  3. US West (Northern California) Region (us-west-1)
89
89
  4. EU (Ireland) Region (eu-west-1)
90
- 5. Asia Pacific (Singapore) Region (ap-southeast-1)
91
- 6. Asia Pacific (Sydney) Region (ap-southeast-2)
92
- 7. Asia Pacific (Tokyo) Region (ap-northeast-1)
93
- 8. South America (Sao Paulo) Region (sa-east-1)
90
+ 5. EU (Frankfurst) Region (eu-central-1)
91
+ 6. Asia Pacific (Singapore) Region (ap-southeast-1)
92
+ 7. Asia Pacific (Sydney) Region (ap-southeast-2)
93
+ 8. Asia Pacific (Tokyo) Region (ap-northeast-1)
94
+ 9. South America (Sao Paulo) Region (sa-east-1)
94
95
  Choose AWS region:
95
96
  Confirming: Using AWS EC2/ap-southeast-2
96
97
  OUT
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cyoi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.1
4
+ version: 0.11.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dr Nic Williams
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-07 00:00:00.000000000 Z
11
+ date: 2014-10-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fog
@@ -218,7 +218,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
218
218
  version: '0'
219
219
  requirements: []
220
220
  rubyforge_project:
221
- rubygems_version: 2.2.1
221
+ rubygems_version: 2.2.2
222
222
  signing_key:
223
223
  specification_version: 4
224
224
  summary: A library to ask an end-user to choose an infrastructure (AWS, OpenStack,