pronto-ansible_lint 0.1.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -0
- data/lib/pronto/ansible_lint.rb +2 -1
- data/lib/pronto/ansible_lint/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: 72e57f69b4ab05b4eb274cd972ed68b4eeaa4718144eab07b9b42e4c7fa53018
|
4
|
+
data.tar.gz: cc024fc23fbfe6205253f47c9e10c1ab3eebb4d71388654f471bf0d54e2a032d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3f04943e5043b6f546d4339ba65444e837204ae00ebe4a7b6167148c3575d7e987af7dc6757774ee76139887bb4069780cf34cfa560342f372bb4da15f97b359
|
7
|
+
data.tar.gz: f781a2c6d39f8949e8bffe6b64883418eb3c259cb137aac76c5471b686e00fb5be3b3d5e0fdccf9ba964f9f4f9f58e9d554dd95d632bceed89b293081197232c
|
data/README.md
CHANGED
@@ -2,6 +2,11 @@
|
|
2
2
|
Pronto runner for [ansible-lint](https://github.com/ansible/ansible-lint), a Python Style Guide Enforcer. [What is Pronto?](https://github.com/mmozuras/pronto)
|
3
3
|
|
4
4
|
|
5
|
+
## Usage
|
6
|
+
* `gem install pronto-ansible_lint`
|
7
|
+
* `pronto run`
|
8
|
+
* `PRONTO_ANSIBLE_LINT_OPTS="-x 301" pronto run` for passing CLI options to `ansible-lint`
|
9
|
+
|
5
10
|
## Contribution Guidelines
|
6
11
|
### Installation
|
7
12
|
`git clone` this repo and `cd pronto-ansible_lint`
|
data/lib/pronto/ansible_lint.rb
CHANGED
@@ -50,8 +50,9 @@ module Pronto
|
|
50
50
|
Dir.chdir(git_repo_path) do
|
51
51
|
yaml_files = filter_yaml_files(files)
|
52
52
|
files = yaml_files.join(' ')
|
53
|
+
extra = ENV['PRONTO_ANSIBLE_LINT_OPTS']
|
53
54
|
if !files.empty?
|
54
|
-
cmd = "#{executable} --nocolor --parseable-severity #{files}"
|
55
|
+
cmd = "#{executable} --nocolor --parseable-severity #{extra} #{files}"
|
55
56
|
parse_output `#{cmd}`
|
56
57
|
else
|
57
58
|
[]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pronto-ansible_lint
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nerijus Bendziunas
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-07-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pronto
|