qops 1.4.1 → 1.4.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 +4 -4
- data/lib/qops/cookbook/cookbook.rb +3 -3
- data/lib/qops/deployment/instances.rb +4 -4
- data/lib/qops/environment.rb +4 -0
- data/lib/qops/helpers.rb +2 -4
- data/lib/qops/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5b00e16cbd05538e354f3bb3a241ee505ee087e5
|
|
4
|
+
data.tar.gz: ff8e906ac4e0be2198b641faae8ad1d741ac95bf
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 951a38baafe2a701c5feb9591da60f35d7bb17a4dab0394d4bf68319abacdf0f1b79fc82a2b1d2f95bf8b5ee92264d7c064936a9cb4b80cdeba5d9489a947a89
|
|
7
|
+
data.tar.gz: 7758ac54510449d684521223616cbaccb7087d73b817ae3280a48bae0698d247e7b8b796fc675ad42a52e993209e59a7d40295588bb67e21e0479009289c4ade
|
|
@@ -76,8 +76,7 @@ class Qops::Cookbook < Thor
|
|
|
76
76
|
status: 'success',
|
|
77
77
|
name: config.cookbook_name,
|
|
78
78
|
version: config.cookbook_version,
|
|
79
|
-
stack: config.stack_id
|
|
80
|
-
)
|
|
79
|
+
stack: config.stack_id)
|
|
81
80
|
|
|
82
81
|
say('Released!', :green)
|
|
83
82
|
end
|
|
@@ -91,7 +90,8 @@ class Qops::Cookbook < Thor
|
|
|
91
90
|
custom_cookbooks_source: {
|
|
92
91
|
type: 's3',
|
|
93
92
|
url: "https://s3.amazonaws.com/#{config.cookbook_s3_bucket}/#{remote_artifact_file}"
|
|
94
|
-
}
|
|
93
|
+
}
|
|
94
|
+
)
|
|
95
95
|
say('Cookbooks updated', :green)
|
|
96
96
|
else
|
|
97
97
|
say('You said no, so we\'re done here.', :yellow)
|
|
@@ -33,7 +33,7 @@ class Qops::Instance < Thor # rubocop:disable Metrics/ClassLength
|
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
],
|
|
36
|
-
ebs_optimized:
|
|
36
|
+
ebs_optimized: config.ebs_optimize
|
|
37
37
|
}
|
|
38
38
|
puts 'Creating instance with params: ' + params.inspect
|
|
39
39
|
instance_id = config.opsworks.create_instance(params).data.instance_id
|
|
@@ -238,8 +238,7 @@ class Qops::Instance < Thor # rubocop:disable Metrics/ClassLength
|
|
|
238
238
|
instance_id: instance.instance_id,
|
|
239
239
|
private_ip: instance.private_ip,
|
|
240
240
|
public_ip: instance.public_ip
|
|
241
|
-
)
|
|
242
|
-
)
|
|
241
|
+
))
|
|
243
242
|
puts 'Success'
|
|
244
243
|
break if instance.instance_id == instances.last.instance_id
|
|
245
244
|
delay = config.wait_deploy
|
|
@@ -255,7 +254,8 @@ class Qops::Instance < Thor # rubocop:disable Metrics/ClassLength
|
|
|
255
254
|
@elb ||= Aws::ElasticLoadBalancing::Client.new(
|
|
256
255
|
region: 'us-east-1',
|
|
257
256
|
access_key_id: config.opsworks.config.credentials.access_key_id,
|
|
258
|
-
secret_access_key: config.opsworks.config.credentials.secret_access_key
|
|
257
|
+
secret_access_key: config.opsworks.config.credentials.secret_access_key
|
|
258
|
+
)
|
|
259
259
|
end
|
|
260
260
|
|
|
261
261
|
def setup_instance(instance, initial_instance_state, manifest)
|
data/lib/qops/environment.rb
CHANGED
|
@@ -105,6 +105,10 @@ module Qops
|
|
|
105
105
|
configuration.hostname_prefix || ''
|
|
106
106
|
end
|
|
107
107
|
|
|
108
|
+
def ebs_optimize
|
|
109
|
+
configuration.ebs_optimize || !!(deploy_type =~ /production/) # rubocop:disable Style/DoubleNegation
|
|
110
|
+
end
|
|
111
|
+
|
|
108
112
|
private
|
|
109
113
|
|
|
110
114
|
def method_missing(method_sym, *arguments, &block)
|
data/lib/qops/helpers.rb
CHANGED
|
@@ -28,8 +28,7 @@ module Qops::Helpers
|
|
|
28
28
|
if i + 1 == config.wait_iterations
|
|
29
29
|
puts " failed to complete within #{config.wait_iterations} seconds"
|
|
30
30
|
ping_slack('Quandl::Slack::Release', 'Command timeout', 'failure',
|
|
31
|
-
options.merge(failed_at: Time.now)
|
|
32
|
-
)
|
|
31
|
+
options.merge(failed_at: Time.now))
|
|
33
32
|
exit(-1)
|
|
34
33
|
elsif been_a_minute?(i)
|
|
35
34
|
print " #{i / 60} minute(s) "
|
|
@@ -47,8 +46,7 @@ module Qops::Helpers
|
|
|
47
46
|
notifier_class = notifier.constantize
|
|
48
47
|
|
|
49
48
|
notifier_class.ping("#{config.app_name}: #{message}",
|
|
50
|
-
attachments: [{ color: status, mrkdwn_in: ['text'], fallback: 'Details', fields: fields }]
|
|
51
|
-
)
|
|
49
|
+
attachments: [{ color: status, mrkdwn_in: ['text'], fallback: 'Details', fields: fields }])
|
|
52
50
|
else
|
|
53
51
|
puts "#{config.app_name}: #{message}"
|
|
54
52
|
pp fields
|
data/lib/qops/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: qops
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.4.
|
|
4
|
+
version: 1.4.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Matthew Basset
|
|
@@ -11,7 +11,7 @@ authors:
|
|
|
11
11
|
autorequire:
|
|
12
12
|
bindir: bin
|
|
13
13
|
cert_chain: []
|
|
14
|
-
date: 2016-05-
|
|
14
|
+
date: 2016-05-27 00:00:00.000000000 Z
|
|
15
15
|
dependencies:
|
|
16
16
|
- !ruby/object:Gem::Dependency
|
|
17
17
|
name: qthor
|