pumog 1.0.1 → 1.1.0
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.
- checksums.yaml +4 -4
- data/.travis.yml +3 -4
- data/README.md +20 -0
- data/lib/pumog/commandline.rb +4 -3
- data/lib/pumog/version.rb +1 -1
- data/lib/templates/init.txt.tt +8 -0
- data/{templates → lib/templates}/package.txt.tt +1 -1
- data/pumog.gemspec +1 -1
- metadata +6 -5
- data/templates/init.txt.tt +0 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e5b235927fdcc16b9932e22479b86a4aa1e0a54c
|
4
|
+
data.tar.gz: 6cfbb573100d50fe442a50bd00bde6e8b6ab0298
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e858567781def0a409f9d5a798a1065e36d05d4a8764fb512661cd0b97ca0fc24027c68a6b1d662bf6508dc68f23077a1f7a394420ece810ac344a38acacffd7
|
7
|
+
data.tar.gz: e5605b276c92fac263f6a1cecf802e9172bbf3a849cceb90ebb4f6e4107945f557fe036c9ab391d6e663481e010e11dfedb5ef57c5e9ee21518f1b69f1462167
|
data/.travis.yml
CHANGED
data/README.md
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
## Pumog
|
2
|
+
|
3
|
+
Stands for **PuppetModuleGenerator** and can be used to generate a basic structure for new puppet modules with or without documentation.
|
4
|
+
|
5
|
+
|
6
|
+
## Usage
|
7
|
+
|
8
|
+
Run `pumog start` and it will generate the following directory structure:
|
9
|
+
|
10
|
+
|
11
|
+
create <module-name>/files
|
12
|
+
create <module-name>/templates
|
13
|
+
exist <module-name>
|
14
|
+
create <module-name>/init.pp
|
15
|
+
create <module-name>/package.pp
|
16
|
+
|
17
|
+
|
18
|
+
If you pass in the `--no-doc` option, you will not asked after the author name and the email (leaving the module without
|
19
|
+
documentation).
|
20
|
+
|
data/lib/pumog/commandline.rb
CHANGED
@@ -7,11 +7,12 @@ module Pumog
|
|
7
7
|
include Thor::Actions
|
8
8
|
|
9
9
|
def self.source_root
|
10
|
-
'templates'
|
10
|
+
File.expand_path('../templates', File.dirname(__FILE__))
|
11
11
|
end
|
12
12
|
|
13
|
-
desc "start", "
|
14
|
-
|
13
|
+
desc "start\n\n", "creates a new puppet module"
|
14
|
+
class_option :nodoc, :desc => 'no documentation', :aliases => '-n', :default => false, :type => :boolean
|
15
|
+
|
15
16
|
def start
|
16
17
|
@nodoc= options[:nodoc] ? false : true
|
17
18
|
|
data/lib/pumog/version.rb
CHANGED
data/pumog.gemspec
CHANGED
@@ -8,7 +8,7 @@ Gem::Specification.new do |s|
|
|
8
8
|
s.email = ["matthias@wikimatze.de"]
|
9
9
|
s.license = 'MIT'
|
10
10
|
s.homepage = "https://github.com/matthias-guenther/pumog"
|
11
|
-
s.summary = %q{Create new puppet
|
11
|
+
s.summary = %q{Create new puppet module with this template.}
|
12
12
|
s.description = %q{Generate a basic structure for new puppet modules with or without documentation.}
|
13
13
|
|
14
14
|
s.files = `git ls-files`.split("\n")
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pumog
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matthias Guenther
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-11-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -62,6 +62,7 @@ extra_rdoc_files: []
|
|
62
62
|
files:
|
63
63
|
- ".travis.yml"
|
64
64
|
- Gemfile
|
65
|
+
- README.md
|
65
66
|
- Rakefile
|
66
67
|
- bin/pumog
|
67
68
|
- lib/pumog.rb
|
@@ -69,13 +70,13 @@ files:
|
|
69
70
|
- lib/pumog/messages.rb
|
70
71
|
- lib/pumog/module_information.rb
|
71
72
|
- lib/pumog/version.rb
|
73
|
+
- lib/templates/init.txt.tt
|
74
|
+
- lib/templates/package.txt.tt
|
72
75
|
- pumog.gemspec
|
73
76
|
- spec/pumog/commandline_spec.rb
|
74
77
|
- spec/pumog/messages_spec.rb
|
75
78
|
- spec/pumog/module_information_spec.rb
|
76
79
|
- spec/spec_helper.rb
|
77
|
-
- templates/init.txt.tt
|
78
|
-
- templates/package.txt.tt
|
79
80
|
homepage: https://github.com/matthias-guenther/pumog
|
80
81
|
licenses:
|
81
82
|
- MIT
|
@@ -99,6 +100,6 @@ rubyforge_project:
|
|
99
100
|
rubygems_version: 2.2.2
|
100
101
|
signing_key:
|
101
102
|
specification_version: 4
|
102
|
-
summary: Create new puppet
|
103
|
+
summary: Create new puppet module with this template.
|
103
104
|
test_files: []
|
104
105
|
has_rdoc:
|