opzworks 0.3.8 → 0.3.9

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: e896423a62fcd4c3a76c49e1f7fb4c30691b077e
4
- data.tar.gz: 635a0dd729399ead391aba1c0cff291596928602
3
+ metadata.gz: d4f9fc4073191ff39ff98f0e525668ab3cdecccb
4
+ data.tar.gz: 130b0426c4087386d0cb8b8fc37c5ab555097f4b
5
5
  SHA512:
6
- metadata.gz: 76b0d9de5b083b0e88f1004897a11bb2a8d4ce417b2c5b3619a647babdd2102870fbf88b1bd9ac083921336d90c9ae570e4fe654eabcc181546feff4842b68fa
7
- data.tar.gz: 36bfd01b5c25618351c2c6cab8ac9f9dc2f9e3190141d9f24ba443c9968a98cdd430aebe4549061dc07cea4805e5a3fc236dad89d478ac0c73b3f42bd6d3a880
6
+ metadata.gz: 9d2110e5ff2526da66d10b66f7f04ace5bab5cd6d18111d67d6918ab99c314ed7cf7b6b8ff21b8afc474cf29fadb74be72a1d308f8ba65474b9680751225cfa4
7
+ data.tar.gz: b87107774be58150423647d3af288cb6548eb6fc744b62a630bdf2370c47b08e65af06f7c87ed632e949b171005c15ec5da05a1adaadc94cd8abc1237668f6bf
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  changelog
2
2
  =========
3
3
 
4
+ 0.3.9
5
+ -----
6
+ * add remote management berkshelf option back in: if there is a Berksfile.opsworks present in the
7
+ opsworks-${project} repo, simply upload it to S3 (don't build the local berkshelf)
8
+
4
9
  0.3.7
5
10
  -----
6
11
  * elastic code enhancements, including a timeout on ssh connect
@@ -54,17 +54,26 @@ module OpzWorks
54
54
  s3_bucket = config.berks_s3_bucket || 'opzworks'
55
55
  overrides = 'overrides'
56
56
 
57
- # berks
58
- #
59
- puts 'Running berks install'.foreground(:blue)
60
- run_local <<-BASH
61
- cd #{@target_path}
62
- berks update
63
- BASH
64
- run_local <<-BASH
65
- cd #{@target_path}
66
- berks vendor #{install_path}
67
- BASH
57
+ if File.exist?("#{@target_path}/Berksfile.opsworks")
58
+ puts 'Remote management berksfile detected, not building local berkshelf.'.foreground(:yellow)
59
+
60
+ unless File.directory?("#{install_path}")
61
+ FileUtils.mkdir_p("#{install_path}")
62
+ end
63
+ FileUtils.copy("#{@target_path}/Berksfile.opsworks", "#{install_path}/Berksfile")
64
+ else
65
+ # berks
66
+ #
67
+ puts 'Running berks install'.foreground(:blue)
68
+ run_local <<-BASH
69
+ cd #{@target_path}
70
+ berks update
71
+ BASH
72
+ run_local <<-BASH
73
+ cd #{@target_path}
74
+ berks vendor #{install_path}
75
+ BASH
76
+ end
68
77
 
69
78
  # if there's an overrides file, just pull it and stuff the contents into the
70
79
  # upload repo; the line is assumed to be a git repo. This is done to override
data/lib/opzworks/meta.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module OpzWorks
2
- VERSION = '0.3.8'
2
+ VERSION = '0.3.9'
3
3
  AUTHORS = ['Grant Heffernan', 'Mapzen']
4
4
  EMAIL = ['grant@mapzen.com']
5
5
  DESCRIPTION = 'OpzWorks Utilities'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opzworks
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.8
4
+ version: 0.3.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Grant Heffernan
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-01-07 00:00:00.000000000 Z
12
+ date: 2016-01-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: aws-sdk