ey-core 3.2.6 → 3.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +0 -4
- data/examples/terminate_instance.rb +5 -1
- data/ey-core.gemspec +8 -7
- data/lib/ey-core/version.rb +1 -1
- metadata +19 -20
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1bb52dbd4539878755960d6bfcf8b4515e5e0fe3
|
4
|
+
data.tar.gz: 0d7662b1cc086a09a934bd8c9afa118a9a600f21
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: db017147d2b18bf239653d487cdbdaa99155f823573b115936a52d1125f4eb004b3661741fde281ac03d188ee4150baad72daa321d0c741c03861082d3d58f35
|
7
|
+
data.tar.gz: 65893cffc63bf3f882513eef63896b8e321cfccfea64d17c2fad4da1b2e11e96b7513bb2966be1437d423ba91f2cfcb6fa2630c8601b4053238c0f517558b429
|
data/.travis.yml
CHANGED
@@ -14,6 +14,7 @@ OptionParser.new do |opts|
|
|
14
14
|
opts.on('-a', '--account NAME', 'Account name') { |v| options[:account_name] = v }
|
15
15
|
opts.on('-e', '--environment NAME', 'Environment name') { |v| options[:environment_name] = v }
|
16
16
|
opts.on('-n', '--iname NAME', 'Instance name') { |v| options[:instance_name] = v }
|
17
|
+
opts.on('-s', '--skip_snapshot', 'Skip snapshotting the volumes') { |v| options[:skip_snapshot] = true }
|
17
18
|
|
18
19
|
end.parse!
|
19
20
|
|
@@ -31,6 +32,9 @@ environment = account.environments.first(name: options[:environment_name])
|
|
31
32
|
# Instance's name
|
32
33
|
instance_name = options[:instance_name]
|
33
34
|
|
35
|
+
# Skip snapshot
|
36
|
+
skip_snapshot = options[:skip_snapshot] ? true : false
|
37
|
+
|
34
38
|
puts "Terminating instance #{instance_name} on environment #{environment.name}...."
|
35
39
|
|
36
40
|
servers = environment.servers.select{|s| s.name == instance_name}
|
@@ -41,7 +45,7 @@ if !servers then
|
|
41
45
|
end
|
42
46
|
|
43
47
|
server = servers[0]
|
44
|
-
deprovision_request = server.destroy
|
48
|
+
deprovision_request = server.destroy!(skip_snapshot)
|
45
49
|
if !deprovision_request then
|
46
50
|
puts "Termination of instance #{instance_name} FAILED!!!!"
|
47
51
|
puts "Check cloud.engineyard.com for more details"
|
data/ey-core.gemspec
CHANGED
@@ -6,8 +6,8 @@ require 'ey-core/version'
|
|
6
6
|
Gem::Specification.new do |gem|
|
7
7
|
gem.name = "ey-core"
|
8
8
|
gem.version = Ey::Core::VERSION
|
9
|
-
gem.authors = ["
|
10
|
-
gem.email = ["
|
9
|
+
gem.authors = ["Engine Yard Engineering"]
|
10
|
+
gem.email = ["engineering@engineyard.com"]
|
11
11
|
gem.description = %q{Engine Yard Core API Ruby Client}
|
12
12
|
gem.summary = %q{Client library providing real and mock functionality for accessing Engine Yard's Core API}
|
13
13
|
gem.homepage = ""
|
@@ -18,22 +18,23 @@ Gem::Specification.new do |gem|
|
|
18
18
|
gem.require_paths = ["lib"]
|
19
19
|
gem.licenses = ["MIT"]
|
20
20
|
|
21
|
-
|
22
|
-
|
21
|
+
gem.required_ruby_version = ">= 2.2.2"
|
22
|
+
|
23
|
+
gem.add_dependency "addressable"
|
23
24
|
|
24
25
|
gem.add_dependency "awesome_print"
|
25
26
|
gem.add_dependency "belafonte"
|
26
|
-
gem.add_dependency "cistern", "~> 0.12"
|
27
|
+
gem.add_dependency "cistern", "~> 0.12.3"
|
27
28
|
gem.add_dependency "colorize"
|
28
29
|
gem.add_dependency "ey-hmac", "~> 2.0"
|
29
30
|
gem.add_dependency "escape"
|
30
31
|
gem.add_dependency "faraday", "~> 0.9"
|
31
32
|
gem.add_dependency "faraday_middleware", "~> 0.9"
|
32
|
-
gem.add_dependency "rack"
|
33
|
+
gem.add_dependency "rack"
|
33
34
|
gem.add_dependency "faye"
|
34
35
|
gem.add_dependency "highline"
|
35
36
|
gem.add_dependency "json", "< 2.0"
|
36
|
-
gem.add_dependency "mime-types"
|
37
|
+
gem.add_dependency "mime-types"
|
37
38
|
gem.add_dependency "oj"
|
38
39
|
gem.add_dependency "oj_mimic_json"
|
39
40
|
gem.add_dependency "pry"
|
data/lib/ey-core/version.rb
CHANGED
metadata
CHANGED
@@ -1,29 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ey-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
-
|
7
|
+
- Engine Yard Engineering
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-05-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: '0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: awesome_print
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -58,14 +58,14 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
61
|
+
version: 0.12.3
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version:
|
68
|
+
version: 0.12.3
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: colorize
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -140,16 +140,16 @@ dependencies:
|
|
140
140
|
name: rack
|
141
141
|
requirement: !ruby/object:Gem::Requirement
|
142
142
|
requirements:
|
143
|
-
- -
|
143
|
+
- - ">="
|
144
144
|
- !ruby/object:Gem::Version
|
145
|
-
version:
|
145
|
+
version: '0'
|
146
146
|
type: :runtime
|
147
147
|
prerelease: false
|
148
148
|
version_requirements: !ruby/object:Gem::Requirement
|
149
149
|
requirements:
|
150
|
-
- -
|
150
|
+
- - ">="
|
151
151
|
- !ruby/object:Gem::Version
|
152
|
-
version:
|
152
|
+
version: '0'
|
153
153
|
- !ruby/object:Gem::Dependency
|
154
154
|
name: faye
|
155
155
|
requirement: !ruby/object:Gem::Requirement
|
@@ -196,16 +196,16 @@ dependencies:
|
|
196
196
|
name: mime-types
|
197
197
|
requirement: !ruby/object:Gem::Requirement
|
198
198
|
requirements:
|
199
|
-
- - "
|
199
|
+
- - ">="
|
200
200
|
- !ruby/object:Gem::Version
|
201
|
-
version:
|
201
|
+
version: '0'
|
202
202
|
type: :runtime
|
203
203
|
prerelease: false
|
204
204
|
version_requirements: !ruby/object:Gem::Requirement
|
205
205
|
requirements:
|
206
|
-
- - "
|
206
|
+
- - ">="
|
207
207
|
- !ruby/object:Gem::Version
|
208
|
-
version:
|
208
|
+
version: '0'
|
209
209
|
- !ruby/object:Gem::Dependency
|
210
210
|
name: oj
|
211
211
|
requirement: !ruby/object:Gem::Requirement
|
@@ -334,7 +334,6 @@ dependencies:
|
|
334
334
|
version: '0'
|
335
335
|
description: Engine Yard Core API Ruby Client
|
336
336
|
email:
|
337
|
-
- jlane@engineyard.com
|
338
337
|
- engineering@engineyard.com
|
339
338
|
executables:
|
340
339
|
- ey-core
|
@@ -813,7 +812,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
813
812
|
requirements:
|
814
813
|
- - ">="
|
815
814
|
- !ruby/object:Gem::Version
|
816
|
-
version:
|
815
|
+
version: 2.2.2
|
817
816
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
818
817
|
requirements:
|
819
818
|
- - ">="
|
@@ -821,7 +820,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
821
820
|
version: '0'
|
822
821
|
requirements: []
|
823
822
|
rubyforge_project:
|
824
|
-
rubygems_version: 2.
|
823
|
+
rubygems_version: 2.6.11
|
825
824
|
signing_key:
|
826
825
|
specification_version: 4
|
827
826
|
summary: Client library providing real and mock functionality for accessing Engine
|