BibOpsworks 0.1.3 → 0.1.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ce3593a1f38211fa4b846668df48654fe75c448d
4
- data.tar.gz: c2e847d8c304006942a1013d9b6554559c9372e9
3
+ metadata.gz: 448a9fd946c9b0ab6e7dab364f819e674b78dccf
4
+ data.tar.gz: 0d3a18ebd32dc560ce21b02bf038f9834882b79f
5
5
  SHA512:
6
- metadata.gz: 655ec8a261a781c57d5d5d60cdae9803533e9ab8f6e82a059b58adf769c0e2f423e45ba575aa1a48cb226b08cb1ff51703a0e0f99ed1c550cf1e25d332c70d5a
7
- data.tar.gz: 3f478d6db3ad9ae1f72fad904ffcd0203a10eecd3994abfdbaf54655bea496f8c106116cde734c06e96d5fb63ef4e1cb77bc795bfcdcce8130bbb9ef2d9636da
6
+ metadata.gz: 02cbb2958bcaa82ce38c3052f3c2ca1d48d1da602eac9c0ef9f8349265e4c04f8ca4bcb5317b0713914ba00356de361bebdecc9ed5bd371ea939148c325253d4
7
+ data.tar.gz: b6ba5c85a7c1671e60584a3a47fbc9789639278a6c898864fe120aacb728ae6df489ecebde28c368701a207fafb717bc596e9d98d06d816d4d15c2a25a30413c
data/README.md CHANGED
@@ -6,4 +6,4 @@
6
6
 
7
7
  ## Huh?
8
8
 
9
- This will soon become a gem we use with opsworks after\_restart.rb and before\_symlink.rb. See also [tills blogpost to speed up composer on opsworks](http://till.klampaeckel.de/blog/archives/202-Speeding-up-composer-on-AWS-OpsWorks.html)
9
+ This is a gem we use with opsworks after\_restart.rb and before\_symlink.rb. See also [tills blogpost to speed up composer on opsworks](http://till.klampaeckel.de/blog/archives/202-Speeding-up-composer-on-AWS-OpsWorks.html)
@@ -16,6 +16,16 @@ module Bib
16
16
 
17
17
  release_vendor = "#{release_path}/vendor"
18
18
 
19
+ if ::File.exist?(release_vendor)
20
+ log.info('Not copying vendor dir, there already is one in the target path')
21
+ return
22
+ end
23
+
24
+ copy_vendordir(release_vendor, vendor_dir)
25
+ chown_vendordir(release_vendor, deploy_username, deploy_group)
26
+ end
27
+
28
+ def copy_vendordir(release_vendor, vendor_dir)
19
29
  if ::File.exist?(vendor_dir)
20
30
  fileutils_output = StringIO.new
21
31
  ::FileUtils.fileutils_output = fileutils_output
@@ -25,7 +35,9 @@ module Bib
25
35
  else
26
36
  log.info("Vendor dir #{vendor_dir} does not exist")
27
37
  end
38
+ end
28
39
 
40
+ def chown_vendordir(release_vendor, deploy_username, deploy_group)
29
41
  if ::File.exist?(release_vendor)
30
42
  fileutils_output = StringIO.new
31
43
  ::FileUtils.fileutils_output = fileutils_output
@@ -1,5 +1,5 @@
1
1
  module Bib
2
2
  module Opsworks
3
- VERSION = '0.1.3'
3
+ VERSION = '0.1.4'
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.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - fh
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2015-04-09 00:00:00.000000000 Z
13
+ date: 2015-06-10 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: json
@@ -142,8 +142,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
142
142
  version: '0'
143
143
  requirements: []
144
144
  rubyforge_project:
145
- rubygems_version: 2.4.3
145
+ rubygems_version: 2.2.2
146
146
  signing_key:
147
147
  specification_version: 4
148
148
  summary: Tools wrapper for AWS Opsworks Deploys
149
149
  test_files: []
150
+ has_rdoc: