logstash-input-ngn 0.1.0 → 0.1.1

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: 4d0d4c0a535ade6b061172c3a3e2405d9d9a78964ce52adb9b27eb310154529c
4
- data.tar.gz: a8a87e1547dd598eb6ab7374f4d772f11fb70b205931217c068d3842e4ce4be3
3
+ metadata.gz: 3d7463d317da5cacbe8df23895e240b3b4b7e7236dcb4c3880f4e31d55e9cb98
4
+ data.tar.gz: 7d49455b19d0dc99e6bd6dcbb733c5998a4a79ded545f6c8080dc3f70b9661d5
5
5
  SHA512:
6
- metadata.gz: 1e2aad57a0d348f3ad8c42a59b8d6e10c26d386c17a1fe2f91d2315e1f8521e0cd0bcd4c22e959cd604cc00e7ac8154e845880508cf424a04834367ba5b27b1a
7
- data.tar.gz: c6a1e3211bdcc1ef772fda06829f28c19f42f05e733d97d7f7389e50ad8ca5d3547ee3aeacf03d411418e62ad65dbce51b0b6b6785b148c17f8376806678400b
6
+ metadata.gz: b28134af1849fa218b0788823357e91cc6c3d273b831d2bb71af6027d88333da22fb65f24c5db412093c53731a8008f9d1ca2cee30a5956c81b1b8e2e363b2d1
7
+ data.tar.gz: 7fce14e9f6128be1b3209dd85efdecf609b9512924f3eca1eec9458d0d763d21e9dbf7cb8f51513abbd293c823580298aa9efc236b2365d3bc3921aca7031cbc
data/README.md CHANGED
@@ -1,19 +1,7 @@
1
- # Logstash Plugin
1
+ # Logstash NGN Input Plugin
2
2
 
3
- This is a plugin for [Logstash](https://github.com/elastic/logstash).
3
+ Polls the NGN-SPS API for seat data.
4
4
 
5
- It is fully free and fully open source. The license is Apache 2.0, meaning you are pretty much free to use it however you want in whatever way.
6
-
7
- ## Documentation
8
-
9
- Logstash provides infrastructure to automatically generate documentation for this plugin. We use the asciidoc format to write documentation so any comments in the source code will be first converted into asciidoc and then into html. All plugin documentation are placed under one [central location](http://www.elastic.co/guide/en/logstash/current/).
10
-
11
- - For formatting code or config example, you can use the asciidoc `[source,ruby]` directive
12
- - For more asciidoc formatting tips, see the excellent reference here https://github.com/elastic/docs#asciidoc-guide
13
-
14
- ## Need Help?
15
-
16
- Need help? Try #logstash on freenode IRC or the https://discuss.elastic.co/c/logstash discussion forum.
17
5
 
18
6
  ## Developing
19
7
 
@@ -74,13 +62,3 @@ gem build logstash-filter-awesome.gemspec
74
62
  bin/logstash-plugin install /your/local/plugin/logstash-filter-awesome.gem
75
63
  ```
76
64
  - Start Logstash and proceed to test the plugin
77
-
78
- ## Contributing
79
-
80
- All contributions are welcome: ideas, patches, documentation, bug reports, complaints, and even something you drew up on a napkin.
81
-
82
- Programming is not a required skill. Whatever you've seen about open source and maintainers or community members saying "send patches or die" - you will not see that here.
83
-
84
- It is more important to the community that you are able to contribute.
85
-
86
- For more information about contributing, see the [CONTRIBUTING](https://github.com/elastic/logstash/blob/master/CONTRIBUTING.md) file.
@@ -27,6 +27,9 @@ class LogStash::Inputs::Ngn < LogStash::Inputs::Base
27
27
  # ngn password
28
28
  config :password, :validate => :string, :required => true
29
29
 
30
+ # ngc env (stg | prod)
31
+ config :env, :validate => :string, :required => true
32
+
30
33
  # authentication token
31
34
  config :token, :validate => :string
32
35
 
@@ -108,7 +111,7 @@ class LogStash::Inputs::Ngn < LogStash::Inputs::Base
108
111
  private
109
112
 
110
113
  def run_script
111
- command = "python3 #{@script} -u #{@username} -p #{@password}"
114
+ command = "python3 #{@script} -u #{@username} -p #{@password} -e #{@env}"
112
115
  if @token
113
116
  command << " -t \"#{@token}\""
114
117
  end
@@ -146,4 +149,4 @@ class LogStash::Inputs::Ngn < LogStash::Inputs::Base
146
149
  end
147
150
 
148
151
 
149
- end # class LogStash::Inputs::Exec
152
+ end # class LogStash::Inputs::Ngn
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'logstash-input-ngn'
3
- s.version = '0.1.0'
3
+ s.version = '0.1.1'
4
4
  s.licenses = ['Apache-2.0']
5
5
  s.summary = 'summary'
6
6
  s.description = 'description'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-input-ngn
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Fischer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-07-06 00:00:00.000000000 Z
11
+ date: 2018-07-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement