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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 86743788ba30d4b49ebd3fb3a78dfe948cd45118
4
- data.tar.gz: 09c133f4592f7a8d3d0f724d7df6722308dd1d28
3
+ metadata.gz: 1bb52dbd4539878755960d6bfcf8b4515e5e0fe3
4
+ data.tar.gz: 0d7662b1cc086a09a934bd8c9afa118a9a600f21
5
5
  SHA512:
6
- metadata.gz: 49882dd05a18313f82f66da5c1064b1601c1cb6b7a6248d558fa87be81f128243a9b008293f2395c7d2389f686c4acbe30989dd4e56cc1520837a9b186e5656e
7
- data.tar.gz: b83cf5cdb1bb7b71380403f019bbc61ae48af70de174d129a13044974cf94814b0b0c320471599dff90a478adbdae4e74539466e968adc2f7e6e0b862e236242
6
+ metadata.gz: db017147d2b18bf239653d487cdbdaa99155f823573b115936a52d1125f4eb004b3661741fde281ac03d188ee4150baad72daa321d0c741c03861082d3d58f35
7
+ data.tar.gz: 65893cffc63bf3f882513eef63896b8e321cfccfea64d17c2fad4da1b2e11e96b7513bb2966be1437d423ba91f2cfcb6fa2630c8601b4053238c0f517558b429
@@ -13,10 +13,6 @@ language: ruby
13
13
  cache: bundler
14
14
 
15
15
  rvm:
16
- - 1.9.3
17
- - 2.0.0
18
- - 2.1.0
19
- - 2.2.0
20
16
  - 2.2.2
21
17
  - 2.3.1
22
18
 
@@ -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"
@@ -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 = ["Josh Lane"]
10
- gem.email = ["jlane@engineyard.com", "engineering@engineyard.com"]
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
- # The last version of addressable that works on ruby-1.9 is 2.4.0
22
- gem.add_dependency "addressable", "= 2.4.0"
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", "= 1.6.4" #maintain ruby 1.9 - 2.2.(0|1) compatibility
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", "~> 2.99.2" #maintain ruby 1.9 compatibility
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"
@@ -1,5 +1,5 @@
1
1
  module Ey
2
2
  module Core
3
- VERSION = "3.2.6"
3
+ VERSION = "3.3.0"
4
4
  end
5
5
  end
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.2.6
4
+ version: 3.3.0
5
5
  platform: ruby
6
6
  authors:
7
- - Josh Lane
7
+ - Engine Yard Engineering
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-02-03 00:00:00.000000000 Z
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: 2.4.0
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: 2.4.0
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: '0.12'
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: '0.12'
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: 1.6.4
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: 1.6.4
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: 2.99.2
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: 2.99.2
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: '0'
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.5.1
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