norad_cli 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (82) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +9 -0
  3. data/.gitlab-ci.yml +43 -0
  4. data/.rspec +2 -0
  5. data/.rubocop.yml +34 -0
  6. data/.ruby-gemset +1 -0
  7. data/.ruby-version +1 -0
  8. data/.travis.yml +5 -0
  9. data/CONTRIBUTING.md +102 -0
  10. data/Gemfile +5 -0
  11. data/LICENSE +201 -0
  12. data/README.md +119 -0
  13. data/Rakefile +7 -0
  14. data/bin/console +15 -0
  15. data/bin/norad +6 -0
  16. data/bin/setup +8 -0
  17. data/lib/norad_cli/cli/main.rb +12 -0
  18. data/lib/norad_cli/cli/secrepo.rb +46 -0
  19. data/lib/norad_cli/cli/sectest.rb +183 -0
  20. data/lib/norad_cli/support/api_security_container_seed_script.rb +42 -0
  21. data/lib/norad_cli/support/manifest.rb +16 -0
  22. data/lib/norad_cli/support/readme.rb +3 -0
  23. data/lib/norad_cli/templates/.gitignore +2 -0
  24. data/lib/norad_cli/templates/.rspec +2 -0
  25. data/lib/norad_cli/templates/CONTRIBUTING.md +193 -0
  26. data/lib/norad_cli/templates/LICENSE.erb +201 -0
  27. data/lib/norad_cli/templates/README.md +2 -0
  28. data/lib/norad_cli/templates/ci/.gitlab.ci.yml +44 -0
  29. data/lib/norad_cli/templates/spec/spec_helper.rb +247 -0
  30. data/lib/norad_cli/templates/spec/support/Dockerfile.testserver +22 -0
  31. data/lib/norad_cli/templates/spec/support/Dockerfile.ubuntu_ssh +20 -0
  32. data/lib/norad_cli/templates/spec/support/ssh_key +27 -0
  33. data/lib/norad_cli/templates/spec/support/ssh_key.pub +1 -0
  34. data/lib/norad_cli/templates/spec/support/test_server/.gitignore +21 -0
  35. data/lib/norad_cli/templates/spec/support/test_server/Gemfile +5 -0
  36. data/lib/norad_cli/templates/spec/support/test_server/Gemfile.lock +116 -0
  37. data/lib/norad_cli/templates/spec/support/test_server/Rakefile +6 -0
  38. data/lib/norad_cli/templates/spec/support/test_server/app/controllers/application_controller.rb +2 -0
  39. data/lib/norad_cli/templates/spec/support/test_server/app/controllers/results_controller.rb +23 -0
  40. data/lib/norad_cli/templates/spec/support/test_server/app/models/application_record.rb +3 -0
  41. data/lib/norad_cli/templates/spec/support/test_server/app/models/result.rb +2 -0
  42. data/lib/norad_cli/templates/spec/support/test_server/bin/bundle +3 -0
  43. data/lib/norad_cli/templates/spec/support/test_server/bin/rails +9 -0
  44. data/lib/norad_cli/templates/spec/support/test_server/bin/rake +9 -0
  45. data/lib/norad_cli/templates/spec/support/test_server/config/application.rb +30 -0
  46. data/lib/norad_cli/templates/spec/support/test_server/config/boot.rb +3 -0
  47. data/lib/norad_cli/templates/spec/support/test_server/config/cable.yml +9 -0
  48. data/lib/norad_cli/templates/spec/support/test_server/config/database.yml +25 -0
  49. data/lib/norad_cli/templates/spec/support/test_server/config/environment.rb +5 -0
  50. data/lib/norad_cli/templates/spec/support/test_server/config/environments/development.rb +47 -0
  51. data/lib/norad_cli/templates/spec/support/test_server/config/environments/production.rb +78 -0
  52. data/lib/norad_cli/templates/spec/support/test_server/config/environments/test.rb +42 -0
  53. data/lib/norad_cli/templates/spec/support/test_server/config/initializers/application_controller_renderer.rb +6 -0
  54. data/lib/norad_cli/templates/spec/support/test_server/config/initializers/backtrace_silencers.rb +7 -0
  55. data/lib/norad_cli/templates/spec/support/test_server/config/initializers/cors.rb +16 -0
  56. data/lib/norad_cli/templates/spec/support/test_server/config/initializers/filter_parameter_logging.rb +4 -0
  57. data/lib/norad_cli/templates/spec/support/test_server/config/initializers/inflections.rb +16 -0
  58. data/lib/norad_cli/templates/spec/support/test_server/config/initializers/mime_types.rb +4 -0
  59. data/lib/norad_cli/templates/spec/support/test_server/config/initializers/new_framework_defaults.rb +18 -0
  60. data/lib/norad_cli/templates/spec/support/test_server/config/initializers/wrap_parameters.rb +14 -0
  61. data/lib/norad_cli/templates/spec/support/test_server/config/locales/en.yml +23 -0
  62. data/lib/norad_cli/templates/spec/support/test_server/config/puma.rb +47 -0
  63. data/lib/norad_cli/templates/spec/support/test_server/config/routes.rb +5 -0
  64. data/lib/norad_cli/templates/spec/support/test_server/config/secrets.yml +20 -0
  65. data/lib/norad_cli/templates/spec/support/test_server/config.ru +5 -0
  66. data/lib/norad_cli/templates/spec/support/test_server/db/migrate/20160725144604_create_results.rb +15 -0
  67. data/lib/norad_cli/templates/spec/support/test_server/db/schema.rb +2 -0
  68. data/lib/norad_cli/templates/spec/support/test_server/lib/tasks/.keep +0 -0
  69. data/lib/norad_cli/templates/spec/support/test_server/log/.keep +0 -0
  70. data/lib/norad_cli/templates/spec/support/test_server/public/robots.txt +5 -0
  71. data/lib/norad_cli/templates/spec/support/test_server/tmp/.keep +0 -0
  72. data/lib/norad_cli/templates/tool/Dockerfile.auth.target.erb +2 -0
  73. data/lib/norad_cli/templates/tool/Dockerfile.erb +11 -0
  74. data/lib/norad_cli/templates/tool/Dockerfile.unauth.target.erb +5 -0
  75. data/lib/norad_cli/templates/tool/README.md.erb +17 -0
  76. data/lib/norad_cli/templates/tool/manifest.yml.erb +19 -0
  77. data/lib/norad_cli/templates/tool/tool_spec.rb.erb +55 -0
  78. data/lib/norad_cli/templates/tool/wrapper.rb.erb +47 -0
  79. data/lib/norad_cli/version.rb +4 -0
  80. data/lib/norad_cli.rb +7 -0
  81. data/norad_cli.gemspec +38 -0
  82. metadata +285 -0
metadata ADDED
@@ -0,0 +1,285 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: norad_cli
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Blake Hitchcock
8
+ - Brian Manifold
9
+ - Roger Seagle
10
+ autorequire:
11
+ bindir: bin
12
+ cert_chain: []
13
+ date: 2017-03-07 00:00:00.000000000 Z
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: git
17
+ requirement: !ruby/object:Gem::Requirement
18
+ requirements:
19
+ - - ">="
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ requirements:
26
+ - - ">="
27
+ - !ruby/object:Gem::Version
28
+ version: '0'
29
+ - !ruby/object:Gem::Dependency
30
+ name: thor
31
+ requirement: !ruby/object:Gem::Requirement
32
+ requirements:
33
+ - - ">="
34
+ - !ruby/object:Gem::Version
35
+ version: '0'
36
+ type: :runtime
37
+ prerelease: false
38
+ version_requirements: !ruby/object:Gem::Requirement
39
+ requirements:
40
+ - - ">="
41
+ - !ruby/object:Gem::Version
42
+ version: '0'
43
+ - !ruby/object:Gem::Dependency
44
+ name: docker-api
45
+ requirement: !ruby/object:Gem::Requirement
46
+ requirements:
47
+ - - ">="
48
+ - !ruby/object:Gem::Version
49
+ version: '0'
50
+ type: :runtime
51
+ prerelease: false
52
+ version_requirements: !ruby/object:Gem::Requirement
53
+ requirements:
54
+ - - ">="
55
+ - !ruby/object:Gem::Version
56
+ version: '0'
57
+ - !ruby/object:Gem::Dependency
58
+ name: safe_yaml
59
+ requirement: !ruby/object:Gem::Requirement
60
+ requirements:
61
+ - - ">="
62
+ - !ruby/object:Gem::Version
63
+ version: '0'
64
+ type: :runtime
65
+ prerelease: false
66
+ version_requirements: !ruby/object:Gem::Requirement
67
+ requirements:
68
+ - - ">="
69
+ - !ruby/object:Gem::Version
70
+ version: '0'
71
+ - !ruby/object:Gem::Dependency
72
+ name: rspec
73
+ requirement: !ruby/object:Gem::Requirement
74
+ requirements:
75
+ - - "~>"
76
+ - !ruby/object:Gem::Version
77
+ version: '3.0'
78
+ type: :runtime
79
+ prerelease: false
80
+ version_requirements: !ruby/object:Gem::Requirement
81
+ requirements:
82
+ - - "~>"
83
+ - !ruby/object:Gem::Version
84
+ version: '3.0'
85
+ - !ruby/object:Gem::Dependency
86
+ name: bundler
87
+ requirement: !ruby/object:Gem::Requirement
88
+ requirements:
89
+ - - "~>"
90
+ - !ruby/object:Gem::Version
91
+ version: '1.12'
92
+ type: :development
93
+ prerelease: false
94
+ version_requirements: !ruby/object:Gem::Requirement
95
+ requirements:
96
+ - - "~>"
97
+ - !ruby/object:Gem::Version
98
+ version: '1.12'
99
+ - !ruby/object:Gem::Dependency
100
+ name: rake
101
+ requirement: !ruby/object:Gem::Requirement
102
+ requirements:
103
+ - - "~>"
104
+ - !ruby/object:Gem::Version
105
+ version: '10.0'
106
+ type: :development
107
+ prerelease: false
108
+ version_requirements: !ruby/object:Gem::Requirement
109
+ requirements:
110
+ - - "~>"
111
+ - !ruby/object:Gem::Version
112
+ version: '10.0'
113
+ - !ruby/object:Gem::Dependency
114
+ name: rainbow
115
+ requirement: !ruby/object:Gem::Requirement
116
+ requirements:
117
+ - - "~>"
118
+ - !ruby/object:Gem::Version
119
+ version: 2.1.0
120
+ type: :development
121
+ prerelease: false
122
+ version_requirements: !ruby/object:Gem::Requirement
123
+ requirements:
124
+ - - "~>"
125
+ - !ruby/object:Gem::Version
126
+ version: 2.1.0
127
+ - !ruby/object:Gem::Dependency
128
+ name: rspec
129
+ requirement: !ruby/object:Gem::Requirement
130
+ requirements:
131
+ - - "~>"
132
+ - !ruby/object:Gem::Version
133
+ version: '3.0'
134
+ type: :development
135
+ prerelease: false
136
+ version_requirements: !ruby/object:Gem::Requirement
137
+ requirements:
138
+ - - "~>"
139
+ - !ruby/object:Gem::Version
140
+ version: '3.0'
141
+ - !ruby/object:Gem::Dependency
142
+ name: rubocop
143
+ requirement: !ruby/object:Gem::Requirement
144
+ requirements:
145
+ - - "~>"
146
+ - !ruby/object:Gem::Version
147
+ version: '0.47'
148
+ type: :development
149
+ prerelease: false
150
+ version_requirements: !ruby/object:Gem::Requirement
151
+ requirements:
152
+ - - "~>"
153
+ - !ruby/object:Gem::Version
154
+ version: '0.47'
155
+ - !ruby/object:Gem::Dependency
156
+ name: bundler-audit
157
+ requirement: !ruby/object:Gem::Requirement
158
+ requirements:
159
+ - - "~>"
160
+ - !ruby/object:Gem::Version
161
+ version: '0.5'
162
+ type: :development
163
+ prerelease: false
164
+ version_requirements: !ruby/object:Gem::Requirement
165
+ requirements:
166
+ - - "~>"
167
+ - !ruby/object:Gem::Version
168
+ version: '0.5'
169
+ description: Command line interface for norad.
170
+ email:
171
+ - rbhitchcock@gmail.com
172
+ - 'bmanifold@gmail.com '
173
+ - roger.seagle@gmail.com
174
+ executables:
175
+ - console
176
+ - norad
177
+ - setup
178
+ extensions: []
179
+ extra_rdoc_files: []
180
+ files:
181
+ - ".gitignore"
182
+ - ".gitlab-ci.yml"
183
+ - ".rspec"
184
+ - ".rubocop.yml"
185
+ - ".ruby-gemset"
186
+ - ".ruby-version"
187
+ - ".travis.yml"
188
+ - CONTRIBUTING.md
189
+ - Gemfile
190
+ - LICENSE
191
+ - README.md
192
+ - Rakefile
193
+ - bin/console
194
+ - bin/norad
195
+ - bin/setup
196
+ - lib/norad_cli.rb
197
+ - lib/norad_cli/cli/main.rb
198
+ - lib/norad_cli/cli/secrepo.rb
199
+ - lib/norad_cli/cli/sectest.rb
200
+ - lib/norad_cli/support/api_security_container_seed_script.rb
201
+ - lib/norad_cli/support/manifest.rb
202
+ - lib/norad_cli/support/readme.rb
203
+ - lib/norad_cli/templates/.gitignore
204
+ - lib/norad_cli/templates/.rspec
205
+ - lib/norad_cli/templates/CONTRIBUTING.md
206
+ - lib/norad_cli/templates/LICENSE.erb
207
+ - lib/norad_cli/templates/README.md
208
+ - lib/norad_cli/templates/ci/.gitlab.ci.yml
209
+ - lib/norad_cli/templates/spec/spec_helper.rb
210
+ - lib/norad_cli/templates/spec/support/Dockerfile.testserver
211
+ - lib/norad_cli/templates/spec/support/Dockerfile.ubuntu_ssh
212
+ - lib/norad_cli/templates/spec/support/ssh_key
213
+ - lib/norad_cli/templates/spec/support/ssh_key.pub
214
+ - lib/norad_cli/templates/spec/support/test_server/.gitignore
215
+ - lib/norad_cli/templates/spec/support/test_server/Gemfile
216
+ - lib/norad_cli/templates/spec/support/test_server/Gemfile.lock
217
+ - lib/norad_cli/templates/spec/support/test_server/Rakefile
218
+ - lib/norad_cli/templates/spec/support/test_server/app/controllers/application_controller.rb
219
+ - lib/norad_cli/templates/spec/support/test_server/app/controllers/results_controller.rb
220
+ - lib/norad_cli/templates/spec/support/test_server/app/models/application_record.rb
221
+ - lib/norad_cli/templates/spec/support/test_server/app/models/result.rb
222
+ - lib/norad_cli/templates/spec/support/test_server/bin/bundle
223
+ - lib/norad_cli/templates/spec/support/test_server/bin/rails
224
+ - lib/norad_cli/templates/spec/support/test_server/bin/rake
225
+ - lib/norad_cli/templates/spec/support/test_server/config.ru
226
+ - lib/norad_cli/templates/spec/support/test_server/config/application.rb
227
+ - lib/norad_cli/templates/spec/support/test_server/config/boot.rb
228
+ - lib/norad_cli/templates/spec/support/test_server/config/cable.yml
229
+ - lib/norad_cli/templates/spec/support/test_server/config/database.yml
230
+ - lib/norad_cli/templates/spec/support/test_server/config/environment.rb
231
+ - lib/norad_cli/templates/spec/support/test_server/config/environments/development.rb
232
+ - lib/norad_cli/templates/spec/support/test_server/config/environments/production.rb
233
+ - lib/norad_cli/templates/spec/support/test_server/config/environments/test.rb
234
+ - lib/norad_cli/templates/spec/support/test_server/config/initializers/application_controller_renderer.rb
235
+ - lib/norad_cli/templates/spec/support/test_server/config/initializers/backtrace_silencers.rb
236
+ - lib/norad_cli/templates/spec/support/test_server/config/initializers/cors.rb
237
+ - lib/norad_cli/templates/spec/support/test_server/config/initializers/filter_parameter_logging.rb
238
+ - lib/norad_cli/templates/spec/support/test_server/config/initializers/inflections.rb
239
+ - lib/norad_cli/templates/spec/support/test_server/config/initializers/mime_types.rb
240
+ - lib/norad_cli/templates/spec/support/test_server/config/initializers/new_framework_defaults.rb
241
+ - lib/norad_cli/templates/spec/support/test_server/config/initializers/wrap_parameters.rb
242
+ - lib/norad_cli/templates/spec/support/test_server/config/locales/en.yml
243
+ - lib/norad_cli/templates/spec/support/test_server/config/puma.rb
244
+ - lib/norad_cli/templates/spec/support/test_server/config/routes.rb
245
+ - lib/norad_cli/templates/spec/support/test_server/config/secrets.yml
246
+ - lib/norad_cli/templates/spec/support/test_server/db/migrate/20160725144604_create_results.rb
247
+ - lib/norad_cli/templates/spec/support/test_server/db/schema.rb
248
+ - lib/norad_cli/templates/spec/support/test_server/lib/tasks/.keep
249
+ - lib/norad_cli/templates/spec/support/test_server/log/.keep
250
+ - lib/norad_cli/templates/spec/support/test_server/public/robots.txt
251
+ - lib/norad_cli/templates/spec/support/test_server/tmp/.keep
252
+ - lib/norad_cli/templates/tool/Dockerfile.auth.target.erb
253
+ - lib/norad_cli/templates/tool/Dockerfile.erb
254
+ - lib/norad_cli/templates/tool/Dockerfile.unauth.target.erb
255
+ - lib/norad_cli/templates/tool/README.md.erb
256
+ - lib/norad_cli/templates/tool/manifest.yml.erb
257
+ - lib/norad_cli/templates/tool/tool_spec.rb.erb
258
+ - lib/norad_cli/templates/tool/wrapper.rb.erb
259
+ - lib/norad_cli/version.rb
260
+ - norad_cli.gemspec
261
+ homepage: https://gitlab.com/norad/cli
262
+ licenses:
263
+ - Apache-2.0
264
+ metadata: {}
265
+ post_install_message:
266
+ rdoc_options: []
267
+ require_paths:
268
+ - lib
269
+ required_ruby_version: !ruby/object:Gem::Requirement
270
+ requirements:
271
+ - - "~>"
272
+ - !ruby/object:Gem::Version
273
+ version: 2.3.0
274
+ required_rubygems_version: !ruby/object:Gem::Requirement
275
+ requirements:
276
+ - - ">="
277
+ - !ruby/object:Gem::Version
278
+ version: '0'
279
+ requirements: []
280
+ rubyforge_project:
281
+ rubygems_version: 2.6.10
282
+ signing_key:
283
+ specification_version: 4
284
+ summary: Command line interface for norad.
285
+ test_files: []