BibOpsworks 0.1.7 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +0 -2
- data/.travis.yml +10 -2
- data/BibOpsworks.gemspec +1 -1
- data/Gemfile.lock +55 -0
- data/LICENSE.txt +10 -19
- data/lib/bib/opsworks.rb +1 -0
- data/lib/bib/opsworks/google.rb +5 -5
- data/lib/bib/opsworks/newrelic.rb +5 -5
- data/lib/bib/opsworks/qafoo.rb +6 -5
- data/lib/bib/opsworks/version.rb +1 -1
- data/tests/qafoo_test.rb +10 -10
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a4c80570e15b0f798a668a7608a8e2a93532533e
|
4
|
+
data.tar.gz: b63cb613831900e72b64594bd996f6d3d53e5df4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 93fc04a81b93da672bb6350287773a3b382aab0c44fc34bb08b56d126224647e00ccde039be3b0ee01b90c9924e3d3d088974136c07baab2aae0e1b1c0efea90
|
7
|
+
data.tar.gz: 9f5619f1631e0850bd20f49eaff2826396ee37c75667e7ab160c604350b8a64e69323f160590496bfb1fb3d542d89fa264b283cdbdbc517eed789fc564b515ea
|
data/.gitignore
CHANGED
data/.travis.yml
CHANGED
data/BibOpsworks.gemspec
CHANGED
@@ -11,7 +11,7 @@ Gem::Specification.new do |spec|
|
|
11
11
|
spec.homepage = 'https://github.com/easybiblabs/bib-opsworks'
|
12
12
|
spec.summary = 'Tools wrapper for AWS Opsworks Deploys'
|
13
13
|
|
14
|
-
spec.license = '
|
14
|
+
spec.license = 'Apache-2.0'
|
15
15
|
|
16
16
|
spec.files = `git ls-files`.split($INPUT_RECORD_SEPARATOR)
|
17
17
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
data/Gemfile.lock
ADDED
@@ -0,0 +1,55 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
BibOpsworks (0.1.8)
|
5
|
+
json
|
6
|
+
|
7
|
+
GEM
|
8
|
+
remote: https://rubygems.org/
|
9
|
+
specs:
|
10
|
+
ast (2.3.0)
|
11
|
+
coveralls (0.8.13)
|
12
|
+
json (~> 1.8)
|
13
|
+
simplecov (~> 0.11.0)
|
14
|
+
term-ansicolor (~> 1.3)
|
15
|
+
thor (~> 0.19.1)
|
16
|
+
tins (~> 1.6.0)
|
17
|
+
docile (1.1.5)
|
18
|
+
json (1.8.3)
|
19
|
+
minitest (5.0.8)
|
20
|
+
parser (2.3.1.2)
|
21
|
+
ast (~> 2.2)
|
22
|
+
powerpack (0.1.1)
|
23
|
+
rainbow (2.1.0)
|
24
|
+
rake (11.2.2)
|
25
|
+
rubocop (0.40.0)
|
26
|
+
parser (>= 2.3.1.0, < 3.0)
|
27
|
+
powerpack (~> 0.1)
|
28
|
+
rainbow (>= 1.99.1, < 3.0)
|
29
|
+
ruby-progressbar (~> 1.7)
|
30
|
+
unicode-display_width (~> 1.0, >= 1.0.1)
|
31
|
+
ruby-progressbar (1.8.1)
|
32
|
+
simplecov (0.11.2)
|
33
|
+
docile (~> 1.1.0)
|
34
|
+
json (~> 1.8)
|
35
|
+
simplecov-html (~> 0.10.0)
|
36
|
+
simplecov-html (0.10.0)
|
37
|
+
term-ansicolor (1.3.2)
|
38
|
+
tins (~> 1.0)
|
39
|
+
thor (0.19.1)
|
40
|
+
tins (1.6.0)
|
41
|
+
unicode-display_width (1.0.5)
|
42
|
+
|
43
|
+
PLATFORMS
|
44
|
+
ruby
|
45
|
+
|
46
|
+
DEPENDENCIES
|
47
|
+
BibOpsworks!
|
48
|
+
bundler (~> 1.3)
|
49
|
+
coveralls
|
50
|
+
minitest (~> 5.0.8)
|
51
|
+
rake
|
52
|
+
rubocop
|
53
|
+
|
54
|
+
BUNDLED WITH
|
55
|
+
1.10.6
|
data/LICENSE.txt
CHANGED
@@ -1,22 +1,13 @@
|
|
1
|
-
Copyright
|
2
|
-
All rights reserved.
|
1
|
+
Copyright 2016 Chegg Inc.
|
3
2
|
|
4
|
-
|
5
|
-
|
3
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
you may not use this file except in compliance with the License.
|
5
|
+
You may obtain a copy of the License at
|
6
6
|
|
7
|
-
|
8
|
-
list of conditions and the following disclaimer.
|
9
|
-
* Redistributions in binary form must reproduce the above copyright notice,
|
10
|
-
this list of conditions and the following disclaimer in the documentation
|
11
|
-
and/or other materials provided with the distribution.
|
7
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
12
8
|
|
13
|
-
|
14
|
-
|
15
|
-
WARRANTIES
|
16
|
-
|
17
|
-
|
18
|
-
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
19
|
-
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
20
|
-
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
|
21
|
-
OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
|
22
|
-
OF THE POSSIBILITY OF SUCH DAMAGE.
|
9
|
+
Unless required by applicable law or agreed to in writing, software
|
10
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
See the License for the specific language governing permissions and
|
13
|
+
limitations under the License.
|
data/lib/bib/opsworks.rb
CHANGED
data/lib/bib/opsworks/google.rb
CHANGED
@@ -26,11 +26,11 @@ module Bib
|
|
26
26
|
def prepare_publishing_data(app_name, deploy_data)
|
27
27
|
scm_revision = deploy_data['scm']['revision']
|
28
28
|
|
29
|
-
if deploy_data['deploying_user'].nil? || deploy_data['deploying_user'].empty?
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
29
|
+
deployment_user = if deploy_data['deploying_user'].nil? || deploy_data['deploying_user'].empty?
|
30
|
+
'opsworks'
|
31
|
+
else
|
32
|
+
deploy_data['deploying_user'].split('/')[1]
|
33
|
+
end
|
34
34
|
|
35
35
|
google_params = {}
|
36
36
|
{
|
@@ -26,11 +26,11 @@ module Bib
|
|
26
26
|
def prepare_publishing_data(app_name, deploy_data)
|
27
27
|
scm_revision = deploy_data['scm']['revision']
|
28
28
|
|
29
|
-
if deploy_data['deploying_user'].nil? || deploy_data['deploying_user'].empty?
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
29
|
+
deployment_user = if deploy_data['deploying_user'].nil? || deploy_data['deploying_user'].empty?
|
30
|
+
'opsworks'
|
31
|
+
else
|
32
|
+
deploy_data['deploying_user'].split('/')[1]
|
33
|
+
end
|
34
34
|
|
35
35
|
newrelic_params = {}
|
36
36
|
{
|
data/lib/bib/opsworks/qafoo.rb
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
require 'net/http'
|
2
|
+
require 'bib/opsworks/logging'
|
2
3
|
|
3
4
|
module Bib
|
4
5
|
module Opsworks
|
@@ -30,11 +31,11 @@ module Bib
|
|
30
31
|
def prepare_publishing_data(app_name, deploy_data)
|
31
32
|
scm_revision = deploy_data['scm']['revision']
|
32
33
|
|
33
|
-
if deploy_data['deploying_user'].nil? || deploy_data['deploying_user'].empty?
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
34
|
+
deployment_user = if deploy_data['deploying_user'].nil? || deploy_data['deploying_user'].empty?
|
35
|
+
'opsworks'
|
36
|
+
else
|
37
|
+
deploy_data['deploying_user'].split('/')[1]
|
38
|
+
end
|
38
39
|
|
39
40
|
name_text = "#{scm_revision} by #{deployment_user}"
|
40
41
|
|
data/lib/bib/opsworks/version.rb
CHANGED
data/tests/qafoo_test.rb
CHANGED
@@ -11,11 +11,11 @@ class QafooTest < Minitest::Test
|
|
11
11
|
app_name = 'unittest'
|
12
12
|
|
13
13
|
scm_revision = deploy_data['scm']['revision']
|
14
|
-
if deploy_data['deploying_user'].nil? || deploy_data['deploying_user'].empty?
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
14
|
+
deployment_user = if deploy_data['deploying_user'].nil? || deploy_data['deploying_user'].empty?
|
15
|
+
'opsworks'
|
16
|
+
else
|
17
|
+
deploy_data['deploying_user'].split('/')[1]
|
18
|
+
end
|
19
19
|
name_text = "#{scm_revision} by #{deployment_user}"
|
20
20
|
|
21
21
|
result = qafoo.prepare_publishing_data(app_name, deploy_data)
|
@@ -34,11 +34,11 @@ class QafooTest < Minitest::Test
|
|
34
34
|
app_name = 'unittest'
|
35
35
|
|
36
36
|
scm_revision = deploy_data['scm']['revision']
|
37
|
-
if deploy_data['deploying_user'].nil? || deploy_data['deploying_user'].empty?
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
37
|
+
deployment_user = if deploy_data['deploying_user'].nil? || deploy_data['deploying_user'].empty?
|
38
|
+
'opsworks'
|
39
|
+
else
|
40
|
+
deploy_data['deploying_user'].split('/')[1]
|
41
|
+
end
|
42
42
|
name_text = "#{scm_revision} by #{deployment_user}"
|
43
43
|
|
44
44
|
result = qafoo.prepare_publishing_data(app_name, deploy_data)
|
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.8
|
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:
|
13
|
+
date: 2016-06-20 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: json
|
@@ -108,6 +108,7 @@ files:
|
|
108
108
|
- ".travis.yml"
|
109
109
|
- BibOpsworks.gemspec
|
110
110
|
- Gemfile
|
111
|
+
- Gemfile.lock
|
111
112
|
- LICENSE.txt
|
112
113
|
- README.md
|
113
114
|
- Rakefile
|
@@ -124,7 +125,7 @@ files:
|
|
124
125
|
- tests/qafoo_test.rb
|
125
126
|
homepage: https://github.com/easybiblabs/bib-opsworks
|
126
127
|
licenses:
|
127
|
-
-
|
128
|
+
- Apache-2.0
|
128
129
|
metadata: {}
|
129
130
|
post_install_message:
|
130
131
|
rdoc_options: []
|
@@ -142,9 +143,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
142
143
|
version: '0'
|
143
144
|
requirements: []
|
144
145
|
rubyforge_project:
|
145
|
-
rubygems_version: 2.
|
146
|
+
rubygems_version: 2.6.1
|
146
147
|
signing_key:
|
147
148
|
specification_version: 4
|
148
149
|
summary: Tools wrapper for AWS Opsworks Deploys
|
149
150
|
test_files: []
|
150
|
-
has_rdoc:
|