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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3afb8c6e35f8997c1a45aa0331eff4d2c22d7b6e
4
- data.tar.gz: 28cdbe8ba37ce1a15cf62aec3e62643fd7b6b0c8
3
+ metadata.gz: abb43bbf0fd56e1b7fdce50e5a0ea327cbdc9718
4
+ data.tar.gz: e2fc97cf6ed52f62d7b9fb000b36b02719defa2c
5
5
  SHA512:
6
- metadata.gz: 791ba09ecce264081cc57133795055597f000f055454c3bac4184e4665a948bdcb63ccc3ffdc9bd97038200ee0f91994872909f246c2506ca18784d2f2ddef9e
7
- data.tar.gz: 425b14655d49e60c7e25f6ba1240e879455abfb0de764f50bc19dbe485cc7eb6b51869e4e84aef58ed1d1c31a577a21fd8ced8c64c95884cb21eb809214649a9
6
+ metadata.gz: 3541713dba0dc646585d5d77d28ad86ae3dd5e334f23df7d35048d5ae305e9ccacc6829025a8cd84f4a71372c4eb160b74394f995c36a1ddebbbe6e9181247ee
7
+ data.tar.gz: efbdb8ef8f0e8eadee4e8a0943389f51eb65dbd4021042e58449b12c81a7b0aecbb67cb4c1c7701331bfc03a2f74759f677a8ae17944a6074a4671e8b79761d5
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- BibOpsworks (0.0.6)
4
+ BibOpsworks (0.0.7)
5
5
  json
6
6
 
7
7
  GEM
@@ -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
- resp = Net::HTTP.new(url.host, url.port).start do |http|
17
- http.request(request)
18
- end
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
@@ -1,5 +1,5 @@
1
1
  module Bib
2
2
  module Opsworks
3
- VERSION = "0.0.6"
3
+ VERSION = "0.0.7"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: BibOpsworks
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - fh