dh-proteus 0.1.3 → 0.1.4

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
  SHA256:
3
- metadata.gz: b0d31f4cca8dbbd403180b503384d70fc284b2b95df51a095e71f629b4942210
4
- data.tar.gz: 0b57912e38c3c4b3f80d57b4c865bd89113f2f0934fb0996582f4d3a4ed1efaf
3
+ metadata.gz: 930202b74f9134b4fb637892037c7f2f4449571c3d0ca48bd4b19f05bd5567dc
4
+ data.tar.gz: e05fc63704777527d50a7e693268b00f0caea3d5c8ba58e62b6f2328b1425d5b
5
5
  SHA512:
6
- metadata.gz: 2a3c50683b3358058ed6651459152bc166f6452533bd8ca5c6d5a4a1c03c1ec821a39ebc40d210c5dfe5d32f6055156e8af5617cea9579964f8de49d75279bc7
7
- data.tar.gz: 1e9ea31e800c1ead1ce9ec95ef460365848dae61a2f34fb6584821a31a1745d0a6f78f255e0b328a062ce79f652c8036cd7005e3c1924ddfaac50128f6183be0
6
+ metadata.gz: 5151d852874d76fdd54aee52ed5946f8f8a900e2a29fb5ae85ed76e5fb990cb20014c3adf2a2c5a840fb10f5d06aec8ed0a418f3e39f1e875a76d234c43fae63
7
+ data.tar.gz: 35315dffe3c11aba65d0e4fff11a3b548615ea76b8605825b9fc6e19cf5562aac1f11a29fbec7fd471181f4baf19738e5c51bcfd538d263de9b5c3640583cf09
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2019 Delivery Hero SE
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
- # Terraform tool
1
+ # Proteus
2
2
 
3
- This repository contains a wrapper application (proteus) around Terraform that facilitates management of resources.
3
+ Proteus is a wrapper application around Terraform that facilitates management of resources.
4
4
 
5
5
  The incentive for a Terraform wrapper is that Terraform in its current state cannot iteratively
6
6
  declare module includes in a loop. Writing all the module includes manually would inevitably lead to
@@ -31,14 +31,13 @@ mkdir -p /usr/local/Cellar/terraform/0.11.14/bin \
31
31
  && curl -o /tmp/terraform.zip "https://releases.hashicorp.com/terraform/0.11.14/terraform_0.11.14_darwin_amd64.zip" \
32
32
  && unzip -o /tmp/terraform.zip -d "/usr/local/Cellar/terraform/0.11.14/bin" \
33
33
  && rm -f /tmp/terraform.zip \
34
- && brew switch terraform 0.11.14
34
+ && brew switch terraform 0.11.14 \
35
35
  && brew pin terraform
36
36
  ```
37
37
 
38
38
  #### Install proteus
39
39
  ```
40
- gem source --add https://YOUR_USER:YOUR_PASSWORD@nexus.usehurrier.com/repository/infra-gems
41
- gem install proteus
40
+ gem install dh-proteus
42
41
  ```
43
42
 
44
43
  #### Set up proteus root path
@@ -404,11 +403,10 @@ TBD
404
403
  After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
405
404
 
406
405
  ## To be done
407
- * Error message if running apply without plan being present
408
406
  * Tests
409
407
  * Code documentation (YARD)
410
- * Slack deployment?
411
- * Disable Slack notifications for dry runs
412
408
  * Enforcing validators?
413
- * Prettier output
414
409
  * Rubocop
410
+
411
+ ## License
412
+ Copyright (c) 2019 [Delivery Hero SE](https://www.deliveryhero.com/). Proteus is free software, and may be redistributed under the terms specificed in the [license](LICENSE).
data/build.sh CHANGED
@@ -2,27 +2,8 @@
2
2
 
3
3
  set -eo pipefail
4
4
 
5
- AWS_PROFILE=logistics-production
6
- BUCKET=production-eu-gems
7
- NEXUS_REPOSITORY=https://nexus.usehurrier.com/repository/proteus/
8
5
  VERSION=$(ruby lib/proteus/version.rb)
9
6
 
10
-
11
- if ! gem list --local | grep nexus; then
12
- echo Please install the nexus gem in order to push to the gem repository: \"gem install nexus\"
13
- exit 1
14
- fi
15
-
16
7
  echo Building version $VERSION
17
8
 
18
- mkdir -p ./release/gems
19
-
20
9
  rake build
21
-
22
- cp ./pkg/*.gem ./release/gems/
23
-
24
- gem generate_index --directory ./release/
25
-
26
- aws --profile $AWS_PROFILE s3 sync ./release s3://$BUCKET
27
-
28
- gem nexus release/gems/dh-proteus-$VERSION.gem --url $NEXUS_REPOSITORY
@@ -98,7 +98,7 @@ module Proteus
98
98
  keys.each do |key|
99
99
  @current_paths = []
100
100
  transform_to_paths(current_data)
101
- @current_paths = @current_paths.grep(/^:#{key}/)
101
+ @current_paths = @current_paths.grep(/^:#{key}:/)
102
102
 
103
103
  unless @current_paths.length == @current_paths.uniq.length
104
104
  raise ValidationError.new(message_suffix: "Values in hierarchy #{keys_to_hierarchy(*@key_stack)} => * => #{key} have to be unique.")
@@ -1,5 +1,5 @@
1
1
  module Proteus
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
4
4
 
5
5
  if $0 == __FILE__
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dh-proteus
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
  - Simon Albrecht
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-06-24 00:00:00.000000000 Z
11
+ date: 2019-07-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -173,10 +173,9 @@ extensions: []
173
173
  extra_rdoc_files: []
174
174
  files:
175
175
  - ".gitignore"
176
- - ".rspec"
177
- - ".travis.yml"
178
176
  - Gemfile
179
177
  - Gemfile.lock
178
+ - LICENSE
180
179
  - README.md
181
180
  - Rakefile
182
181
  - bin/console
data/.rspec DELETED
@@ -1,3 +0,0 @@
1
- --format documentation
2
- --color
3
- --require spec_helper
data/.travis.yml DELETED
@@ -1,7 +0,0 @@
1
- ---
2
- sudo: false
3
- language: ruby
4
- cache: bundler
5
- rvm:
6
- - 2.5.5
7
- before_install: gem install bundler -v 2.0.1