falkorlib 0.3.6 → 0.3.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,11 @@
1
+ # File:: init.pp
2
+ # Author:: <%= config[:author] %> (<%= config[:email] %>)
3
+ # Copyright:: Copyright (c) <%= Time.now.year %> <%= config[:author] %>
4
+ # License:: <%= config[:license] %>
5
+ #
6
+ # ------------------------------------------------------------------------------
7
+
8
+ import "classes/*.pp"
9
+ #import "definitions/*.pp"
10
+
11
+
@@ -0,0 +1,19 @@
1
+ {
2
+ "name": "<%= config[:name] %>",
3
+ "version": "<%= config[:version] %>",
4
+ "author": "<%= config[:author] %>",
5
+ "mail": "<%= config[:mail] %>",
6
+ "summary": "<%= config[:summary] %>",
7
+ "description": "<%= config[:description] %>",
8
+ "license": "<%= config[:license] %>",
9
+ "source": "<%= config[:source] %>",
10
+ "project_page": "<%= config[:project_page] %>",
11
+ "issues_url": "<%= config[:issues_url] %>",
12
+ "dependencies": [
13
+ { "name": "puppetlabs-stdlib", "version_range": ">= 1.0.0" }
14
+ ],
15
+ "operatingsystem_support": [
16
+ { "operatingsystem":"Debian", "operatingsystemrelease": [ "6", "7" ] }
17
+ ],
18
+ "tags": <%= config[:tags] %>
19
+ }
@@ -0,0 +1,24 @@
1
+ Templates
2
+ =========
3
+
4
+ Puppet supports templates and templating via ERB, which is part of the Ruby
5
+ standard library and is used for many other projects including Ruby on Rails.
6
+ Templates allow you to manage the content of template files, for example
7
+ configuration files that cannot yet be managed as a Puppet type.
8
+
9
+ Learn more [here](http://projects.puppetlabs.com/projects/puppet/wiki/Puppet_Templating)
10
+
11
+ You can use templates like this:
12
+
13
+ class <%= config[:name] %> {
14
+ package { <%= config[:name].gsub(/^puppet-/, '') %>: ensure => latest }
15
+ file { "/etc/<%= config[:name] %>.conf":
16
+ content => template("<%= config[:name] %>/myfile.erb")
17
+ }
18
+ }
19
+
20
+ The templates are searched for in:
21
+
22
+ $templatedir/<%= config[:name] %>/myfile.erb
23
+ $modulepath/<%= config[:name] %>/templates/myfile.erb
24
+
@@ -0,0 +1,16 @@
1
+ ################################################################################
2
+ # ____ _ __ __ _ _ _
3
+ #| _ \ _ _ _ __ _ __ ___| |_ \ \ / /_ _ _ __(_) __ _| |__ | | ___ ___
4
+ #| |_) | | | | '_ \| '_ \ / _ \ __| \ \ / / _` | '__| |/ _` | '_ \| |/ _ \/ __|
5
+ #| __/| |_| | |_) | |_) | __/ |_ \ V / (_| | | | | (_| | |_) | | __/\__ \
6
+ #|_| \__,_| .__/| .__/ \___|\__| \_/ \__,_|_| |_|\__,_|_.__/|_|\___||___/
7
+ # |_| |_|
8
+ ################################################################################
9
+ # /!\ DO NOT EDIT THIS FILE: It has been automatically generated by Puppet. #
10
+ # In particular, any further changes will be overwritten at the next puppet #
11
+ # invocation #
12
+ ################################################################################
13
+ # These are the variables used by the module <%= config[:name] %>
14
+ #
15
+ # General internal variables:
16
+ $packagename = < %= scope.lookupvar('<%= config[:name] %>::params::packagename') % >
@@ -0,0 +1,12 @@
1
+ # The baseline for module testing used by Puppet Labs is that each manifest
2
+ # should have a corresponding test manifest that declares that class or defined
3
+ # type.
4
+ #
5
+ # Tests are then run by using puppet apply --noop (to check for compilation
6
+ # errors and view a log of events) or by fully applying the test in a virtual
7
+ # environment (to compare the resulting system state to the desired state).
8
+ #
9
+ # Learn more about module testing here:
10
+ # http://docs.puppetlabs.com/guides/tests_smoke.html
11
+ #
12
+ include <%= config[:name] %>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: falkorlib
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.6
4
+ version: 0.3.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sebastien Varrette
@@ -274,13 +274,16 @@ extra_rdoc_files:
274
274
  - CHANGELOG.md
275
275
  - LICENCE.md
276
276
  files:
277
- - ".falkorlib.noespec"
277
+ - ".Manifest.txt"
278
+ - ".gitignore"
279
+ - ".travis.yml"
278
280
  - CHANGELOG.md
279
281
  - Gemfile
280
282
  - Gemfile.lock
281
283
  - LICENCE.md
282
284
  - README.md
283
285
  - Rakefile
286
+ - binscripts/bootstrap.sh
284
287
  - falkorlib.gemspec
285
288
  - lib/falkorlib.rb
286
289
  - lib/falkorlib/common.rb
@@ -315,6 +318,20 @@ files:
315
318
  - spec/falkorlib/versioning_spec.rb
316
319
  - spec/falkorlib_spec.rb
317
320
  - spec/spec_helper.rb
321
+ - templates/puppet/modules/.gitignore
322
+ - templates/puppet/modules/Gemfile
323
+ - templates/puppet/modules/README.md.erb
324
+ - templates/puppet/modules/Rakefile
325
+ - templates/puppet/modules/doc/contributing.md.erb
326
+ - templates/puppet/modules/files/README.md
327
+ - templates/puppet/modules/manifests/classes/templatename-params.pp.erb
328
+ - templates/puppet/modules/manifests/classes/templatename.pp.erb
329
+ - templates/puppet/modules/manifests/definitions/templatename-mydef.pp.erb
330
+ - templates/puppet/modules/manifests/init.pp.erb
331
+ - templates/puppet/modules/metadata.json.erb
332
+ - templates/puppet/modules/templates/README.md
333
+ - templates/puppet/modules/templates/templatename-variables.erb
334
+ - templates/puppet/modules/tests/init.pp.erb
318
335
  homepage: https://github.com/Falkor/falkorlib
319
336
  licenses:
320
337
  - MIT
@@ -1,321 +0,0 @@
1
- #
2
- # This file provides a full specification for maintaining your ruby library using Noe.
3
- # It consists of two main sections: template-info and variables. The first one contains
4
- # meta-information about the skeleton itself while the second one provides information
5
- # about your library.
6
- #
7
- # Please update the first part with care, as it immediately affects the way Noe will
8
- # manage the files of your own project. The second part may be updated more freely.
9
- #
10
- # Remember that your project may use a shorter version of this file as it will be
11
- # automatically completed with default options when invoking 'noe go'. In particular,
12
- # the first section (under template-info) is only required to contain the name and
13
- # version of the template to use.
14
- #
15
- # Use 'noe prepare --template=ruby --layout=short' to generate a shorter
16
- # version of this file.
17
- #
18
- # See 'noe help prepare' and 'noe help show-spec' for more information.
19
- #
20
- template-info:
21
-
22
- # Don't remove the name and version entries, which are ALWAYS required
23
- name: "ruby"
24
- version: 1.7.0
25
-
26
- # The following entries are information about the template itself and can safely
27
- # be removed on your own project.
28
- summary: |
29
- Template for creating a ruby gem following best ruby practices
30
- description: |
31
- This is a [Noe](https://github.com/blambeau/noe) template for creating a ruby gem
32
- library. Generated project comes with rake tasks to support the lifecycle of the
33
- library (testing, releasing, and so on). Following Noe philosophy this template
34
- also helps you understanding the ruby ecosystem by providing a fully documented
35
- project, rake tasks, and so on.
36
- authors:
37
- - {name: Bernard Lambeau, email: blambeau@gmail.com}
38
- links:
39
- source: https://github.com/blambeau/noe/tree/master/templates/ruby
40
- documentation: https://github.com/blambeau/noe/blob/master/templates/ruby/README.md
41
-
42
- #
43
- # Below starts the template manifest.
44
- #
45
- # Each entry is related to a template file and may contain the following keys:
46
- # - description: short explanation of the role the file plays in your project
47
- # - safe-override: may the file be safely overrided by 'noe go --safe-override'?
48
- # - wlang-dialect: what dialect must be used for wlang instantiation. When no
49
- # dialect is specified, the dialect under main-wlang-dialect is used.
50
- #
51
- # You can safely remove the whole manifest or entries for which the default values
52
- # are ok for your project. Otherwise, values defined below override the default ones
53
- # provided by the template.
54
- #
55
- # An typical example for keeping an entry here is to set safe-override to false for
56
- # specific project files you want to manage manually.
57
- #
58
- manifest:
59
- .gitignore:
60
- description: Files to be ignored by git or another version control system
61
- safe-override: false
62
- .travis.yml:
63
- description: Build matrix for continuous integration on travis-ci.org
64
- safe-override: false
65
- __lower__.gemspec:
66
- description: Gem specification file
67
- safe-override: true
68
- wlang-dialect: wlang/ruby
69
- CHANGELOG.md:
70
- description: Information about library changes
71
- safe-override: false
72
- Gemfile:
73
- description: Information used by Bundler, the Ruby dependency manager
74
- safe-override: true
75
- wlang-dialect: wlang/ruby
76
- lib/__lower__.rb:
77
- description: Main file of the ruby library
78
- safe-override: false
79
- lib/__lower__/version.rb:
80
- description: Handler for the version number for the library
81
- safe-override: true
82
- lib/__lower__/loader.rb:
83
- description: Dependency loader for the ruby library
84
- safe-override: true
85
- LICENCE.md:
86
- description: Licensing information
87
- safe-override: false
88
- Manifest.txt:
89
- description: Information about the files that compose the package
90
- safe-override: false
91
- Rakefile:
92
- description: Information for Ruby maker
93
- safe-override: true
94
- wlang-dialect: wlang/ruby
95
- README.md:
96
- description: Starter documentation file
97
- safe-override: false
98
- spec/__lower__spec.rb:
99
- description: Main test file of the ruby library
100
- safe-override: false
101
- spec/spec_helper.rb:
102
- description: Helper for ruby spec tests
103
- safe-override: false
104
- tasks/debug_mail.rake:
105
- description: configuration file for 'rake debug_mail'
106
- safe-override: true
107
- wlang-dialect: wlang/ruby
108
- tasks/debug_mail.txt:
109
- description: mail template used by 'rake debug_mail'
110
- safe-override: true
111
- wlang-dialect: wlang/dummy
112
- tasks/gem.rake:
113
- description: configuration file for 'rake package', 'rake gem' and associated tasks
114
- safe-override: true
115
- wlang-dialect: wlang/ruby
116
- tasks/spec_test.rake:
117
- description: configuration file for 'rake spec_test'
118
- safe-override: true
119
- wlang-dialect: wlang/ruby
120
- tasks/unit_test.rake:
121
- description: configuration file for 'rake unit_test'
122
- safe-override: true
123
- wlang-dialect: wlang/ruby
124
- tasks/yard.rake:
125
- description: configuration file for 'rake yard'
126
- safe-override: true
127
- wlang-dialect: wlang/ruby
128
-
129
- # The following entries are template-related variables. Update to match your
130
- # own configuration.
131
- variables:
132
- # A ruby lower case project name. This will become the name of the generated
133
- # gem of the main ruby .rb start file and so on.
134
- lower:
135
- falkorlib
136
-
137
- # A ruby upper case project name. This is used to generate the main namespacing
138
- # module of your project and shoul be the CamelCase equivalent of your lower
139
- # name.
140
- upper:
141
- FalkorLib
142
-
143
- # Version of your library
144
- version:
145
- 0.1.0
146
-
147
- # Project summary (~ 1 line)
148
- summary: |-
149
- Sebastien Varrette aka Falkor's Common library to share Ruby code and {rake,cap} tasks
150
-
151
- # Project description (~ 5 lines). Project description should be more complete
152
- # than the summary and will be used to describe your gem on rubygems.org
153
- description: |-
154
- This is my personal library I use to share the Ruby tidbits, Rake and Capistrano tasks I made for my various projects.
155
- This is also my first gem so any comments on the code/organization are welcome, I'm a newbie in this domain.
156
- Note that I used [Noe](https://github.com/blambeau/noe) to bootstrap this project and get a fully documented environment.
157
-
158
-
159
-
160
- # Authors of the project. Each author entry is a Hash and MUST at least have
161
- # 'name' and 'email' keys. This is used to add meta information to your .gemspec
162
- # file. Example:
163
- #
164
- # authors:
165
- # - name: Bob
166
- # email: bob@gmail.com
167
- #
168
- authors:
169
- - name: Sebastien Varrette
170
- email: Sebastien.Varrette@uni.lu
171
-
172
- # Web links for the project. You should typically include links to the sources
173
- # (github), rubygems.org, documentation and so on. The first link will be used
174
- # to fill the .gemspec file. Example:
175
- #
176
- # links:
177
- # - http://github.com/bob/hello_world
178
- # - http://rubygems.org/gems/hello_world
179
- #
180
- links:
181
- - https://github.com/Falkor/falkorlib
182
-
183
- # Gem dependencies. Each entry is a Hash that MUST at least have 'name', 'version'
184
- # and 'groups' keys. The later is an array of dependency groups and are used to
185
- # generate Gemfile and .gemspec files. For now, only 'development' and 'runtime'
186
- # values are supported.
187
- #
188
- # Example
189
- # # Rake is required for development only
190
- # - {name: rake, version: "~> 0.8.7", groups: [development]}
191
- # # HighLine is required at runtime
192
- # - {name: highline, version: ">= 0", groups: [runtime]}
193
- # # WLang is required for both development and runtime
194
- # - {name: wlang, version: ">= 0", groups: [runtime, development]}
195
- #
196
- dependencies:
197
- # Rake is required for developers, as usual
198
- - {name: rake, version: "~> 0.9.2", groups: [development]}
199
- # Bundler is required for developers and is used by the Rakefile
200
- - {name: bundler, version: "~> 1.0", groups: [development]}
201
- # RSpec is required to run 'rake spec'. See tasks/spec.rake
202
- - {name: rspec, version: "~> 2.7.0", groups: [development]}
203
- # YARD and BlueCloth are required to run 'rake yard'. See tasks/yard.rake
204
- - {name: yard, version: "~> 0.7.2", groups: [development]}
205
- - {name: bluecloth, version: "~> 2.2.0", groups: [development]}
206
- # wlang is required to run 'rake debug_mail'. See tasks/debug_mail.rake
207
- - {name: wlang, version: "~> 0.10.2", groups: [development]}
208
-
209
-
210
- # Below are defined a certain number of specific variables for the .gemspec file
211
- # of your library. We'll include it here to keep .gemspec under Noe's control for
212
- # simple yet flexible cases. If your gem configuration is really specific, you
213
- # can always maintain the .gemspec manually by setting
214
- # template-info/manifest/__lower__.gemspec/safe-override to false
215
- gemspec:
216
- # Paths in the gem to add to $LOAD_PATH when the gem is activated (required).
217
- require_paths: [ lib ]
218
- # The path in the gem for executable scripts
219
- bindir: 'bin'
220
- # Array containing the names of executables included in the gem,
221
- # if any (Dir[...] patterns are supported).
222
- executables: [ 'bin/*' ]
223
- # Array of test files (Dir[...] patterns are supported).
224
- test_files: ['test/**/*', 'spec/**/*']
225
- # Array of options to use when invoking rdoc
226
- rdoc_options: [ ]
227
- # Array of extra files to give to rdoc (Dir[...] patterns are supported)
228
- extra_rdoc_files: [ README.md, CHANGELOG.md, LICENCE.md ]
229
- # Array of extensions to build when installing the gem.
230
- extensions: []
231
- # External (to RubyGems) requirements that must be met for this gem to work (informal)
232
- requirements:
233
- # A friendly message you would like to display when the user installs your gem
234
- post_install_message: |
235
- Thanks for installing !{upper}.
236
-
237
- # Below are defined a certain number of specific variables for each rake task.
238
- # Have a look at tasks/*.rake for additional details on each one.
239
- rake_tasks:
240
- gem:
241
- # Folder in which the packages are generated
242
- package_dir: pkg
243
- # Do you need a .tar package?
244
- need_tar: false
245
- # Do you need a .tar.gz package?
246
- need_tar_gz: false
247
- # Do you need a .tar.bz2 package?
248
- need_tar_bz2: false
249
- # Do you need a .zip package?
250
- need_zip: false
251
- # The shell command executed to build a .tar
252
- tar_command: tar
253
- # The shell command executed to build a .zip
254
- zip_command: zip
255
- debug_mail:
256
- # Regular expression to detect change sections in
257
- # the CHANGELOG file
258
- rx_changelog_sections: '/^# /'
259
- # Number of change sections to show in the mail
260
- nb_changelog_sections: 1
261
- spec_test:
262
- # Pattern to find spec tests
263
- pattern: spec/**/test_*.rb
264
- # By default, if there is a Gemfile, the generated command will include
265
- # 'bundle exec'. Set this to true to ignore the presence of a Gemfile,
266
- # and not add 'bundle exec' to the command.
267
- skip_bundler: false
268
- # Name of Gemfile to use
269
- gemfile: Gemfile
270
- # Whether or not to fail Rake when an error occurs (typically when
271
- # examples fail).
272
- fail_on_error: true
273
- # A message to print to stderr when there are failures.
274
- failure_message:
275
- # Use verbose output. If this is set to true, the task will print the
276
- # executed spec command to stdout.
277
- verbose: true
278
- # Use rcov for code coverage?
279
- rcov: false
280
- # Path to rcov.
281
- rcov_path: rcov
282
- # Command line options to pass to rcov. See 'rcov --help' about this
283
- rcov_opts: []
284
- # Command line options to pass to ruby. See 'ruby --help' about this
285
- ruby_opts: []
286
- # Path to rspec
287
- rspec_path: rspec
288
- # Command line options to pass to rspec. See 'rspec --help' about this
289
- rspec_opts: [--color, --backtrace]
290
- unit_test:
291
- # Glob pattern to match test files. (default is 'test/test*.rb')
292
- pattern: test/test_*.rb
293
- # Array of directories to added to $LOAD_PATH before running the tests.
294
- libs: [ lib ]
295
- # True if verbose test output desired.
296
- verbose: false
297
- # Test options passed to the test suite. An explicit TESTOPTS=opts
298
- # on the command line will override this.
299
- options:
300
- # Request that the tests be run with the warning flag set.
301
- # E.g. warning=true implies "ruby -w" used to run the tests.
302
- warning: false
303
- # Style of test loader to use. Options are:
304
- #
305
- # * :rake -- Rake provided test loading script (default).
306
- # * :testrb -- Ruby provided test loading script.
307
- # * :direct -- Load tests using command line loader.
308
- #
309
- loader: :rake
310
- # Array of commandline options to pass to ruby when running test loader.
311
- ruby_opts: []
312
- # Explicitly define the list of test files to be included in a
313
- # test. +list+ is expected to be an array of file names (a
314
- # FileList is acceptable). If both +pattern+ and +test_files+ are
315
- # used, then the list of test files is the union of the two.
316
- test_files:
317
- yard:
318
- # Array of ruby source files
319
- files: ['lib/**/*.rb']
320
- # Array of options passed to yard commandline. See 'yardoc --help' about this
321
- options: ['--output-dir', 'doc/api', '-', 'README.md', 'CHANGELOG.md', 'LICENCE.md']