skull_island 2.3.3 → 2.3.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +8 -11
- data/Gemfile.lock +5 -5
- data/README.md +11 -0
- data/lib/skull_island/cli.rb +6 -0
- data/lib/skull_island/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 419919da7e326596bad5b119c90b63a067c01bbb7bd548b4278439cab7f9d58f
|
4
|
+
data.tar.gz: e256379f87a307d34ce9284ba53bc0c267f22d92d48ce1c4693cefb90efa860b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '055945efbdf0617d570e55a18872dc0698d839f416a8162eb58915970edadd8f1e41ab72c50d3bdb80420fed15cef94dd39bba7d60a4d8a30bab87ae4343f0e5'
|
7
|
+
data.tar.gz: 54d7e77bbc70420ff46af2968a1b7ed0e4ac742445642add8fff2e6531badbf4c3781d87b4c22b85b89a8368c98287baebb0b179944829ac8afbf338e85bf889
|
data/.travis.yml
CHANGED
@@ -1,23 +1,20 @@
|
|
1
1
|
env:
|
2
2
|
global:
|
3
|
-
|
3
|
+
secure: X0rMm9ggYBmo9qLM7D5UYrEa1EpKQV+OzXsHKmHFnZteAlc4EUOsuT0EfYSP+zWUJVUjjSb69CYz70slYxnc8Ovoya/k790mve/aPiJCjq7CFXdZDyMALFttBshcVO5sAGhvkyvD/vtUMiaiZNEQheHJ6P3DnAOYCTEcFKxRfmauzYmFuIUuDZXKDfvIar1TgWguOxk52jXkks68n8iS0UzRyMTgrA0+VxCWpmzGAuuKATcYmt/vuSjeNY1DoLHPuhrhtDHtbL0U0qNkaFauzjr+p8GOcNGEh38sY/+rBLTIEoQifmtkvM0UjKkJJHYwG+5TiCKAtqeVtqyP1mNhDdbuQtprzuzt/AvFevcy2g1KsjEGXn4mklahyDsBWiCOGAmlik/HmUnTCfy1daJLajWcy6JLg6GcNxMzufPVWDe/ceWp6J3Wd7JVhJ96d7qo5hufTnOSpLr/vtVuZ3ZRaPfYHRxhardwaWA2szW1J7/rVKPJn1/jQ8xu3+9eqKJa7IT8sPIDBHAyFo+W5rLUMeicXRKAcVGeCO6rs/auGWnD2/xXO830T0GiYU6AohEeY/w5vBVvuKLbbJvHWH71EiPHTykAL0pIFOlCC4m7kxwsfA+GvYAboWxTdUNc53Vgz8/1lomRBqaf/q7c2lFjW4MIgfLGDxnzGbaf8cVEVDg=
|
4
4
|
language: ruby
|
5
5
|
cache: bundler
|
6
6
|
rvm:
|
7
7
|
- 3.0
|
8
|
-
|
9
8
|
before_install: gem install bundler -v '~> 2.2'
|
10
|
-
|
11
9
|
before_script:
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
10
|
+
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64
|
11
|
+
> ./cc-test-reporter
|
12
|
+
- chmod +x ./cc-test-reporter
|
13
|
+
- "./cc-test-reporter before-build"
|
16
14
|
after_script:
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
15
|
+
- "./cc-test-reporter format-coverage -t cobertura coverage/coverage.xml"
|
16
|
+
- "./cc-test-reporter upload-coverage"
|
17
|
+
- exit $TRAVIS_TEST_RESULT
|
21
18
|
deploy:
|
22
19
|
provider: rubygems
|
23
20
|
api_key:
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
skull_island (2.3.
|
4
|
+
skull_island (2.3.4)
|
5
5
|
deepsort (~> 0.4)
|
6
6
|
erubi (~> 1.8)
|
7
7
|
linguistics (~> 2.1)
|
@@ -22,7 +22,7 @@ GEM
|
|
22
22
|
public_suffix (>= 2.0.2, < 5.0)
|
23
23
|
ast (2.4.2)
|
24
24
|
concurrent-ruby (1.1.8)
|
25
|
-
coveralls_reborn (0.
|
25
|
+
coveralls_reborn (0.21.0)
|
26
26
|
simplecov (>= 0.18.1, < 0.22.0)
|
27
27
|
term-ansicolor (~> 1.6)
|
28
28
|
thor (>= 0.20.3, < 2.0)
|
@@ -63,8 +63,8 @@ GEM
|
|
63
63
|
loggability (0.18.2)
|
64
64
|
mime-types (3.3.1)
|
65
65
|
mime-types-data (~> 3.2015)
|
66
|
-
mime-types-data (3.2021.
|
67
|
-
minitest (5.14.
|
66
|
+
mime-types-data (3.2021.0225)
|
67
|
+
minitest (5.14.4)
|
68
68
|
multi_json (1.15.0)
|
69
69
|
multipart-post (2.1.1)
|
70
70
|
net-http-persistent (2.9.4)
|
@@ -79,7 +79,7 @@ GEM
|
|
79
79
|
websocket (~> 1.0)
|
80
80
|
rainbow (3.0.0)
|
81
81
|
rake (13.0.3)
|
82
|
-
regexp_parser (2.
|
82
|
+
regexp_parser (2.1.1)
|
83
83
|
rest-client (2.1.0)
|
84
84
|
http-accept (>= 1.7.0, < 2.0)
|
85
85
|
http-cookie (>= 1.0.2, < 2.0)
|
data/README.md
CHANGED
@@ -56,6 +56,7 @@ Commands:
|
|
56
56
|
skull_island help [COMMAND] # Describe available commands or one specific command
|
57
57
|
skull_island import [OPTIONS] [INPUT|-] # Import a configuration from INPUT
|
58
58
|
skull_island migrate [OPTIONS] [INPUT|-] [OUTPUT|-] # Migrate an older config from INPUT to OUTPUT
|
59
|
+
skull_island render [INPUT|-] # Render out preprocessed YAML for troubleshooting
|
59
60
|
skull_island reset # Fully reset a gateway (removing all config)
|
60
61
|
skull_island version # Display the current installed version of skull_island
|
61
62
|
|
@@ -149,6 +150,16 @@ To use this functionality, either add the `project` key to your configuration fi
|
|
149
150
|
|
150
151
|
When using the `project` feature of Skull Island, the CLI tool will automatically clean up old resources no longer found in your config file. This is, in fact, the _only_ circumstance under which this tool actually removes resources. Use this feature with care, as it can delete large swaths of your configuration if used incorrectly. It is **critical** that this value is unique since this project functionality is used to delete resources.
|
151
152
|
|
153
|
+
#### Troubleshooting Import Failures
|
154
|
+
|
155
|
+
If you're having trouble importing some YAML -- especially if you've done a lot of templating or have a lot of embedded ruby in your template -- you can use the `render` command to just output the raw, preprocessed YAML that Skull Island would attempt to import:
|
156
|
+
|
157
|
+
```sh
|
158
|
+
skull_island render /path/to/some/template.yml
|
159
|
+
```
|
160
|
+
|
161
|
+
This is safe to do on your local machine since it doesn't connect to a gateway. It will leave `lookup` functions but otherwise will leave the YAML without embedded ruby. This can then be linted with any YAML linter to help discover YAML-related formatting issues, etc., that cause import issues.
|
162
|
+
|
152
163
|
### Migrating
|
153
164
|
|
154
165
|
With Skull Island, it is possible to migrate a configuration from a 0.14.x, 1.1.x, 1.2.x, 1.4.x, or 1.5.x gateway to the most recent compatible gateway. If you have a previous export, you can just run `skull_island migrate /path/to/export.yml` and you'll receive a 2.3 compatible config on standard out. If you'd prefer, you can have that config written to a file as well (just like the export command) like so:
|
data/lib/skull_island/cli.rb
CHANGED
@@ -132,6 +132,12 @@ module SkullIsland
|
|
132
132
|
].each { |clname| reset_class(clname, options['project']) }
|
133
133
|
end
|
134
134
|
|
135
|
+
desc('render [INPUT|-]', 'Render out preprocessed YAML for troubleshooting')
|
136
|
+
def render(input_file = '-')
|
137
|
+
raw ||= acquire_input(input_file, options['verbose'])
|
138
|
+
puts erb_preprocess(raw)
|
139
|
+
end
|
140
|
+
|
135
141
|
desc('version', 'Display the current installed version of skull_island')
|
136
142
|
def version
|
137
143
|
puts "SkullIsland Version: #{SkullIsland::VERSION}"
|
data/lib/skull_island/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: skull_island
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.3.
|
4
|
+
version: 2.3.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jonathan Gnagy
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-03-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: deepsort
|