cts-mpx-aci 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (47) hide show
  1. checksums.yaml +7 -0
  2. data/CHANGELOG.md +64 -0
  3. data/Gemfile +30 -0
  4. data/Gemfile.lock +178 -0
  5. data/Guardfile +40 -0
  6. data/LICENSE +201 -0
  7. data/README.md +203 -0
  8. data/Rakefile +6 -0
  9. data/Rules +53 -0
  10. data/bin/console +7 -0
  11. data/bin/setup +8 -0
  12. data/content/CHANGELOG.md +1 -0
  13. data/content/EXAMPLES.md +1 -0
  14. data/content/README.md +1 -0
  15. data/content/assets/bootstrap.min.css +12 -0
  16. data/content/assets/images/cts-logo-wide.svg +121 -0
  17. data/content/assets/images/cts-logo.svg +119 -0
  18. data/content/assets/syntax.css +210 -0
  19. data/content/coverage +1 -0
  20. data/content/doc +1 -0
  21. data/content/specifications.html +1 -0
  22. data/content/stylesheet.css +101 -0
  23. data/cts-mpx-aci.gemspec +23 -0
  24. data/data/stencils/account_record.json +431 -0
  25. data/data/stencils/media_custom_fields.json +37 -0
  26. data/data/stencils/servers.json +31 -0
  27. data/data/stencils/task_templates.json +17 -0
  28. data/data/stencils/test.json +13 -0
  29. data/examples/collect.md +21 -0
  30. data/examples/complete_basic.md +95 -0
  31. data/examples/deploy.md +25 -0
  32. data/examples/image.md +41 -0
  33. data/examples/pre_post_block.md +101 -0
  34. data/layouts/default.html +52 -0
  35. data/lib/cts/mpx/aci/extensions/cts/mpx/entries.rb +29 -0
  36. data/lib/cts/mpx/aci/extensions/cts/mpx/entry.rb +130 -0
  37. data/lib/cts/mpx/aci/extensions/services/data/entry.rb +136 -0
  38. data/lib/cts/mpx/aci/stencil.rb +148 -0
  39. data/lib/cts/mpx/aci/tasks/collect.rb +91 -0
  40. data/lib/cts/mpx/aci/tasks/deploy.rb +117 -0
  41. data/lib/cts/mpx/aci/tasks/image.rb +161 -0
  42. data/lib/cts/mpx/aci/transformations.rb +144 -0
  43. data/lib/cts/mpx/aci/validators.rb +114 -0
  44. data/lib/cts/mpx/aci/version.rb +7 -0
  45. data/lib/cts/mpx/aci.rb +76 -0
  46. data/nanoc.yaml +22 -0
  47. metadata +158 -0
@@ -0,0 +1,7 @@
1
+ module Cts
2
+ module Mpx
3
+ module Aci
4
+ VERSION = "2.0.0".freeze # Current version of Cts::Mpx::ACI
5
+ end
6
+ end
7
+ end
@@ -0,0 +1,76 @@
1
+ require 'bundler'
2
+ require 'bundler/setup'
3
+ require 'cgi'
4
+ require 'diffy'
5
+ require 'logging'
6
+ require 'open3'
7
+ require 'rubygems'
8
+ require 'cts/mpx'
9
+
10
+ require 'cts/mpx/aci/extensions/cts/mpx/entries.rb'
11
+ require 'cts/mpx/aci/extensions/cts/mpx/entry.rb'
12
+ require 'cts/mpx/aci/stencil'
13
+ require 'cts/mpx/aci/tasks/collect'
14
+ require 'cts/mpx/aci/tasks/image'
15
+ require 'cts/mpx/aci/tasks/deploy'
16
+ require 'cts/mpx/aci/transformations'
17
+ require 'cts/mpx/aci/validators'
18
+ require 'cts/mpx/aci/version'
19
+
20
+ # Comcast Technology Solutions
21
+ module Cts
22
+ # MPX product
23
+ module Mpx
24
+ # Account Continuous Integration.
25
+ module Aci
26
+ module_function
27
+
28
+ @logger = Logging.logger[self]
29
+ @options = {}
30
+ %i[colorize_stdout log_to_file log_to_stdout].each { |o| @options[o] = false }
31
+ Logging.color_scheme('bright', levels: { info: :green,
32
+ warn: :yellow,
33
+ error: :red,
34
+ fatal: %i[white on_red] },
35
+ date: :blue,
36
+ logger: :cyan,
37
+ message: :magenta)
38
+
39
+ # build a new object from the options provided
40
+ #
41
+ # @return [nil] nil
42
+ def configure_options
43
+ @logger.add_appenders Logging.appenders.file("cts-aci-mpx-#{Time.now.to_i}.log", layout: Logging.layouts.json) if @options[:log_to_file]
44
+
45
+ @logger.add_appenders Logging.appenders.stdout level: :info, layout: Logging.layouts.pattern(pattern: '%m\n') if @options[:log_to_stdout] || @options[:colorize_stdout]
46
+
47
+ return unless @options[:colorize_stdout]
48
+
49
+ layout = Logging.layouts.pattern(pattern: '[%d] %-5l %c: %m\n',
50
+ color_scheme: 'bright')
51
+ @logger.appenders.last.layout = layout
52
+ nil
53
+ end
54
+
55
+ # the logger
56
+ #
57
+ # @return [Logging::Logger]
58
+ def logger
59
+ @logger
60
+ end
61
+
62
+ # options method
63
+ #
64
+ # @param key [String] (optional) option to look up
65
+ # @param value [*] Value to assign to the option array
66
+ # @return [*] value of the option returned
67
+ # @return [Hash] entire option hash (with no parameter)
68
+ def options(key = nil, value = nil)
69
+ return @options unless key
70
+ return @options[key] unless value
71
+
72
+ @options[key] = value
73
+ end
74
+ end
75
+ end
76
+ end
data/nanoc.yaml ADDED
@@ -0,0 +1,22 @@
1
+ string_pattern_type: glob
2
+ text_extensions: [ 'adoc', 'asciidoc', 'atom', 'coffee', 'css', 'erb', 'haml', 'handlebars', 'hb', 'htm', 'html', 'js', 'less', 'markdown', 'md', 'ms', 'mustache', 'php', 'rb', 'rdoc', 'sass', 'scss', 'slim', 'txt', 'xhtml', 'xml' ]
3
+ output_dir: gh-pages
4
+ index_filenames: [ 'index.html' ]
5
+ enable_output_diff: false
6
+
7
+ prune:
8
+ auto_prune: true
9
+ exclude: [ '.git', '.hg', '.svn', 'CVS' ]
10
+ data_sources:
11
+ -
12
+ type: filesystem
13
+ items_root: /
14
+ layouts_root: /
15
+ encoding: utf-8
16
+ identifier_type: full
17
+ checks:
18
+ internal_links:
19
+ exclude: []
20
+ external_links:
21
+ exclude: []
22
+ exclude_files: []
metadata ADDED
@@ -0,0 +1,158 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: cts-mpx-aci
3
+ version: !ruby/object:Gem::Version
4
+ version: 2.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Ernie Brodeur
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2018-11-21 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: creatable
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: cts-mpx
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: diffy
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: logging
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: oj
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ description:
84
+ email:
85
+ - ernie.brodeur@cable.comcast.com
86
+ executables: []
87
+ extensions: []
88
+ extra_rdoc_files: []
89
+ files:
90
+ - CHANGELOG.md
91
+ - Gemfile
92
+ - Gemfile.lock
93
+ - Guardfile
94
+ - LICENSE
95
+ - README.md
96
+ - Rakefile
97
+ - Rules
98
+ - bin/console
99
+ - bin/setup
100
+ - content/CHANGELOG.md
101
+ - content/EXAMPLES.md
102
+ - content/README.md
103
+ - content/assets/bootstrap.min.css
104
+ - content/assets/images/cts-logo-wide.svg
105
+ - content/assets/images/cts-logo.svg
106
+ - content/assets/syntax.css
107
+ - content/coverage
108
+ - content/doc
109
+ - content/specifications.html
110
+ - content/stylesheet.css
111
+ - cts-mpx-aci.gemspec
112
+ - data/stencils/account_record.json
113
+ - data/stencils/media_custom_fields.json
114
+ - data/stencils/servers.json
115
+ - data/stencils/task_templates.json
116
+ - data/stencils/test.json
117
+ - examples/collect.md
118
+ - examples/complete_basic.md
119
+ - examples/deploy.md
120
+ - examples/image.md
121
+ - examples/pre_post_block.md
122
+ - layouts/default.html
123
+ - lib/cts/mpx/aci.rb
124
+ - lib/cts/mpx/aci/extensions/cts/mpx/entries.rb
125
+ - lib/cts/mpx/aci/extensions/cts/mpx/entry.rb
126
+ - lib/cts/mpx/aci/extensions/services/data/entry.rb
127
+ - lib/cts/mpx/aci/stencil.rb
128
+ - lib/cts/mpx/aci/tasks/collect.rb
129
+ - lib/cts/mpx/aci/tasks/deploy.rb
130
+ - lib/cts/mpx/aci/tasks/image.rb
131
+ - lib/cts/mpx/aci/transformations.rb
132
+ - lib/cts/mpx/aci/validators.rb
133
+ - lib/cts/mpx/aci/version.rb
134
+ - nanoc.yaml
135
+ homepage:
136
+ licenses: []
137
+ metadata: {}
138
+ post_install_message:
139
+ rdoc_options: []
140
+ require_paths:
141
+ - lib
142
+ required_ruby_version: !ruby/object:Gem::Requirement
143
+ requirements:
144
+ - - ">="
145
+ - !ruby/object:Gem::Version
146
+ version: 2.4.0
147
+ required_rubygems_version: !ruby/object:Gem::Requirement
148
+ requirements:
149
+ - - ">="
150
+ - !ruby/object:Gem::Version
151
+ version: '0'
152
+ requirements: []
153
+ rubyforge_project:
154
+ rubygems_version: 2.6.11
155
+ signing_key:
156
+ specification_version: 4
157
+ summary: mpx account continuous integration driver.
158
+ test_files: []