BibOpsworks 0.0.7 → 0.0.8

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: abb43bbf0fd56e1b7fdce50e5a0ea327cbdc9718
4
- data.tar.gz: e2fc97cf6ed52f62d7b9fb000b36b02719defa2c
3
+ metadata.gz: 3842cfa5128aca6d0c8d4fcc7f1a76483e14b71c
4
+ data.tar.gz: 6b588ae21b647cc8e5d606796cdcaea2eca10972
5
5
  SHA512:
6
- metadata.gz: 3541713dba0dc646585d5d77d28ad86ae3dd5e334f23df7d35048d5ae305e9ccacc6829025a8cd84f4a71372c4eb160b74394f995c36a1ddebbbe6e9181247ee
7
- data.tar.gz: efbdb8ef8f0e8eadee4e8a0943389f51eb65dbd4021042e58449b12c81a7b0aecbb67cb4c1c7701331bfc03a2f74759f677a8ae17944a6074a4671e8b79761d5
6
+ metadata.gz: 095284f9424a97dabfc9db9f0cd0e0b5ef2c9c4873b5c8ed58bbfa868f0bd69c03997cef87e69f8aca8db14646a0b81138b42a63d199ecc8bea13aa43350da20
7
+ data.tar.gz: 117cbcbc2acee961ef471ecd65fe9adfc4523a4d78ed6b4233965b5e2892db00e0f58ecc70477b5a8a911dee5949052bddd1119d7b9114fa0cc1a150a3986b82
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- BibOpsworks (0.0.7)
4
+ BibOpsworks (0.0.8)
5
5
  json
6
6
 
7
7
  GEM
@@ -13,9 +13,25 @@ module Bib
13
13
 
14
14
  release_vendor = "#{release_path}/vendor"
15
15
 
16
- ::FileUtils.cp_r vendor_dir, release_vendor if ::File.exists?(vendor_dir)
17
- ::FileUtils.chown_R deploy_username, deploy_group, release_vendor if ::File.exists?(release_vendor)
16
+ log.debug("Copy Vendor: Copying from #{vendor_dir} to #{release_vendor}")
17
+ result = ::FileUtils.cp_r vendor_dir, release_vendor, :verbose => true if ::File.exists?(vendor_dir)
18
+
19
+ log.debug("Chown Vendor #{release_vendor} to #{deploy_username}.#{deploy_group}")
20
+ result = ::FileUtils.chown_R deploy_username, deploy_group, release_vendor, :verbose => true if ::File.exists?(release_vendor)
21
+ end
22
+
23
+ def log
24
+ if(defined?(Chef))
25
+ Chef::Log
26
+ else
27
+ unless(@logger)
28
+ require 'logger'
29
+ @logger = Logger.new($stdout)
30
+ end
31
+ @logger
32
+ end
18
33
  end
34
+
19
35
  end
20
36
  end
21
37
  end
@@ -1,5 +1,5 @@
1
1
  module Bib
2
2
  module Opsworks
3
- VERSION = "0.0.7"
3
+ VERSION = "0.0.8"
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.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - fh