cyoi 0.11.1 → 0.11.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -2
- data/ChangeLog.md +1 -0
- data/README.md +12 -10
- data/lib/cyoi/cli/helpers/settings.rb +2 -2
- data/lib/cyoi/cli/provider_image/image_cli_aws.rb +2 -0
- data/lib/cyoi/cli/providers/provider_cli_aws.rb +2 -11
- data/lib/cyoi/providers/clients/aws_provider_client.rb +2 -0
- data/lib/cyoi/providers/constants/aws_constants.rb +2 -0
- data/lib/cyoi/version.rb +1 -1
- data/spec/integration/cli/provider/provider_aws_spec.rb +5 -4
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 65745e0fecf89e39b10ea1637266b6d2068035e6
|
4
|
+
data.tar.gz: 78bc1bb11f29d4856f806fc98b65ee7a562525bb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0962060185d439a2d23b4fdf04624caeefd54a825635d0b406f343e6a019da5debec03d779babd73a95d266e136e1b036ba5f87a898ecbcdd93a3472ef078851
|
7
|
+
data.tar.gz: ec0c841da483288bc33d2676f3e643e6debd596c39a42f99b43349adaf1cec08938f03d181217e77dd3925b9dc315edcef370c66baa472e46ddab5d2348d722c
|
data/.travis.yml
CHANGED
data/ChangeLog.md
CHANGED
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.
|
31
|
-
6. Asia Pacific (
|
32
|
-
7. Asia Pacific (
|
33
|
-
8.
|
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.
|
74
|
-
2.
|
75
|
-
3.
|
76
|
-
4.
|
77
|
-
5.
|
78
|
-
6.
|
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
|
@@ -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
|
@@ -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
@@ -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.
|
91
|
-
6. Asia Pacific (
|
92
|
-
7. Asia Pacific (
|
93
|
-
8.
|
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.
|
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-
|
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.
|
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,
|