BibOpsworks 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/bib/opsworks/composer.rb +3 -1
- data/lib/bib/opsworks/newrelic.rb +4 -4
- data/lib/bib/opsworks/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: abb43bbf0fd56e1b7fdce50e5a0ea327cbdc9718
|
4
|
+
data.tar.gz: e2fc97cf6ed52f62d7b9fb000b36b02719defa2c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3541713dba0dc646585d5d77d28ad86ae3dd5e334f23df7d35048d5ae305e9ccacc6829025a8cd84f4a71372c4eb160b74394f995c36a1ddebbbe6e9181247ee
|
7
|
+
data.tar.gz: efbdb8ef8f0e8eadee4e8a0943389f51eb65dbd4021042e58449b12c81a7b0aecbb67cb4c1c7701331bfc03a2f74759f677a8ae17944a6074a4671e8b79761d5
|
data/Gemfile.lock
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
require 'fileutils'
|
2
|
+
|
1
3
|
module Bib
|
2
4
|
module Opsworks
|
3
5
|
class Composer
|
@@ -10,7 +12,7 @@ module Bib
|
|
10
12
|
deploy_group = deploy_user['group']
|
11
13
|
|
12
14
|
release_vendor = "#{release_path}/vendor"
|
13
|
-
|
15
|
+
|
14
16
|
::FileUtils.cp_r vendor_dir, release_vendor if ::File.exists?(vendor_dir)
|
15
17
|
::FileUtils.chown_R deploy_username, deploy_group, release_vendor if ::File.exists?(release_vendor)
|
16
18
|
end
|
@@ -11,11 +11,11 @@ module Bib
|
|
11
11
|
url = URI.parse(newrelic_url)
|
12
12
|
request = Net::HTTP::Post.new(url.request_uri)
|
13
13
|
request.add_field('X-Api-Key', newrelic_api_key)
|
14
|
-
request.content_type = "application/octet-stream"
|
15
14
|
request.set_form_data(newrelic_params)
|
16
|
-
|
17
|
-
|
18
|
-
|
15
|
+
|
16
|
+
http = Net::HTTP.new(url.host, url.port)
|
17
|
+
http.use_ssl = true
|
18
|
+
resp = http.request(request)
|
19
19
|
|
20
20
|
resp.is_a? Net::HTTPSuccess
|
21
21
|
end
|
data/lib/bib/opsworks/version.rb
CHANGED