pumog 1.1.0 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +3 -1
- data/Gemfile.lock +36 -0
- data/README.md +37 -6
- data/lib/pumog/commandline.rb +8 -6
- data/lib/pumog/version.rb +1 -1
- data/pumog.gemspec +2 -2
- metadata +7 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d70e4b04e2fac5795f89546e63a6fda6fd95187d
|
4
|
+
data.tar.gz: 449e1152cdf4e908faf5a7e918808f22c977d477
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5c0397b2131e3288e0f5b0e6782f241bade5557e97656a20e7e6229de64c15a7de13536b7ec464e9b17ecdfde494987e7fe9292d9d03c1aa6b9b0fe51512dd58
|
7
|
+
data.tar.gz: 67f16b975b9e7f0b5918cab4558779118d18bf6cd2897fead3821b5dcfd3667437ea95a2d4b75ef277aa92527ff8525b6b4daeb202401be3724e251bf0f89604
|
data/.travis.yml
CHANGED
data/Gemfile.lock
ADDED
@@ -0,0 +1,36 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
pumog (1.2.0)
|
5
|
+
thor (~> 0.19)
|
6
|
+
|
7
|
+
GEM
|
8
|
+
remote: http://rubygems.org/
|
9
|
+
specs:
|
10
|
+
diff-lcs (1.2.5)
|
11
|
+
rake (10.4.2)
|
12
|
+
rspec (3.3.0)
|
13
|
+
rspec-core (~> 3.3.0)
|
14
|
+
rspec-expectations (~> 3.3.0)
|
15
|
+
rspec-mocks (~> 3.3.0)
|
16
|
+
rspec-core (3.3.2)
|
17
|
+
rspec-support (~> 3.3.0)
|
18
|
+
rspec-expectations (3.3.1)
|
19
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
20
|
+
rspec-support (~> 3.3.0)
|
21
|
+
rspec-mocks (3.3.2)
|
22
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
23
|
+
rspec-support (~> 3.3.0)
|
24
|
+
rspec-support (3.3.0)
|
25
|
+
thor (0.19.1)
|
26
|
+
|
27
|
+
PLATFORMS
|
28
|
+
ruby
|
29
|
+
|
30
|
+
DEPENDENCIES
|
31
|
+
pumog!
|
32
|
+
rake (~> 10.3)
|
33
|
+
rspec (~> 3.3)
|
34
|
+
|
35
|
+
BUNDLED WITH
|
36
|
+
1.10.6
|
data/README.md
CHANGED
@@ -3,18 +3,49 @@
|
|
3
3
|
Stands for **PuppetModuleGenerator** and can be used to generate a basic structure for new puppet modules with or without documentation.
|
4
4
|
|
5
5
|
|
6
|
-
## Usage
|
6
|
+
## Usage & Examples
|
7
7
|
|
8
8
|
Run `pumog start` and it will generate the following directory structure:
|
9
9
|
|
10
|
+
What is the name of the module?
|
11
|
+
test
|
10
12
|
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
What is the name of the author?
|
14
|
+
Matthias
|
15
|
+
|
16
|
+
What is the email adress of the author?
|
17
|
+
matthias@wikimatze.de
|
18
|
+
|
19
|
+
New module will be created in:
|
20
|
+
/home/wm/test
|
21
|
+
|
22
|
+
Author/creator of the new module:
|
23
|
+
Matthias <matthias@wikimatze.de>
|
24
|
+
|
25
|
+
Is this correct? [y|n]:
|
26
|
+
|
27
|
+
create test/files
|
28
|
+
create test/templates
|
29
|
+
create test/manifests
|
30
|
+
create test/manifests/init.pp
|
31
|
+
create test/manifests/package.pp
|
16
32
|
|
17
33
|
|
18
34
|
If you pass in the `--no-doc` option, you will not asked after the author name and the email (leaving the module without
|
19
35
|
documentation).
|
20
36
|
|
37
|
+
|
38
|
+
## Commands & Options
|
39
|
+
|
40
|
+
Commands:
|
41
|
+
|
42
|
+
|
43
|
+
pumog help [COMMAND] # Describe available commands or one specific command
|
44
|
+
pumog start # creates a new puppet module
|
45
|
+
|
46
|
+
|
47
|
+
Options:
|
48
|
+
|
49
|
+
|
50
|
+
-n, [--nodoc], [--no-nodoc] # no documentation
|
51
|
+
|
data/lib/pumog/commandline.rb
CHANGED
@@ -44,20 +44,22 @@ module Pumog
|
|
44
44
|
private
|
45
45
|
def confirm(data)
|
46
46
|
say Pumog::Messages.confirm_module_name(data.name.downcase), :blue
|
47
|
-
say Pumog::Messages.confirm_creator(data), :yellow
|
48
|
-
say Pumog::Messages.confirm, :yellow
|
49
47
|
|
50
|
-
|
48
|
+
if @nodoc
|
49
|
+
say Pumog::Messages.confirm_creator(data), :yellow
|
50
|
+
say Pumog::Messages.confirm, :yellow
|
51
|
+
confirm = STDIN.gets.chop
|
51
52
|
|
52
|
-
|
53
|
-
|
53
|
+
while confirm.empty? | confirm.include?('n')
|
54
|
+
start
|
55
|
+
end
|
54
56
|
end
|
55
57
|
|
56
58
|
create_files(data)
|
57
59
|
end
|
58
60
|
|
59
61
|
def create_files(data)
|
60
|
-
manifests_directory_name = data.name
|
62
|
+
manifests_directory_name = data.name + "/manifests"
|
61
63
|
|
62
64
|
empty_directory data.name + "/files"
|
63
65
|
empty_directory data.name + "/templates"
|
data/lib/pumog/version.rb
CHANGED
data/pumog.gemspec
CHANGED
@@ -7,7 +7,7 @@ Gem::Specification.new do |s|
|
|
7
7
|
s.authors = ["Matthias Guenther"]
|
8
8
|
s.email = ["matthias@wikimatze.de"]
|
9
9
|
s.license = 'MIT'
|
10
|
-
s.homepage = "https://github.com/
|
10
|
+
s.homepage = "https://github.com/wikimatze/pumog"
|
11
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
|
|
@@ -17,7 +17,7 @@ Gem::Specification.new do |s|
|
|
17
17
|
s.require_paths = ["lib"]
|
18
18
|
|
19
19
|
# specify any dependencies here; for example:
|
20
|
-
s.add_development_dependency "rspec", "~> 3.
|
20
|
+
s.add_development_dependency "rspec", "~> 3.3"
|
21
21
|
s.add_development_dependency "rake", "~> 10.3"
|
22
22
|
s.add_runtime_dependency "thor", "~>0.19"
|
23
23
|
end
|
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.
|
4
|
+
version: 1.2.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:
|
11
|
+
date: 2015-08-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '3.
|
19
|
+
version: '3.3'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '3.
|
26
|
+
version: '3.3'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -62,6 +62,7 @@ extra_rdoc_files: []
|
|
62
62
|
files:
|
63
63
|
- ".travis.yml"
|
64
64
|
- Gemfile
|
65
|
+
- Gemfile.lock
|
65
66
|
- README.md
|
66
67
|
- Rakefile
|
67
68
|
- bin/pumog
|
@@ -77,7 +78,7 @@ files:
|
|
77
78
|
- spec/pumog/messages_spec.rb
|
78
79
|
- spec/pumog/module_information_spec.rb
|
79
80
|
- spec/spec_helper.rb
|
80
|
-
homepage: https://github.com/
|
81
|
+
homepage: https://github.com/wikimatze/pumog
|
81
82
|
licenses:
|
82
83
|
- MIT
|
83
84
|
metadata: {}
|
@@ -97,7 +98,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
97
98
|
version: '0'
|
98
99
|
requirements: []
|
99
100
|
rubyforge_project:
|
100
|
-
rubygems_version: 2.
|
101
|
+
rubygems_version: 2.4.8
|
101
102
|
signing_key:
|
102
103
|
specification_version: 4
|
103
104
|
summary: Create new puppet module with this template.
|