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 +4 -4
- data/README.md +1 -1
- data/lib/bib/opsworks/composer.rb +12 -0
- data/lib/bib/opsworks/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 448a9fd946c9b0ab6e7dab364f819e674b78dccf
|
|
4
|
+
data.tar.gz: 0d3a18ebd32dc560ce21b02bf038f9834882b79f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
|
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
|
data/lib/bib/opsworks/version.rb
CHANGED
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.
|
|
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-
|
|
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.
|
|
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:
|