pumog 1.0.1 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4697a155f0a397bbfeee1f8a6bc233bd1717af2b
4
- data.tar.gz: d073c78990be612c7c60e87388b3298c29ca4829
3
+ metadata.gz: e5b235927fdcc16b9932e22479b86a4aa1e0a54c
4
+ data.tar.gz: 6cfbb573100d50fe442a50bd00bde6e8b6ab0298
5
5
  SHA512:
6
- metadata.gz: f9c26045ec7b4fc21a77bbcd13d9e266f7b32563853555494a5df068578ca1bfcff8c3d30433de6ca07b5c3b88ae5da1c69f25f074f13f380d325c7e70ed0105
7
- data.tar.gz: fe02c154ed45d1a8bf6893242b865778efdb1788fd85660dfd10f64d6e999056b22a05770991b28b084827f7565e68b73617c39799989a7bae7d2d48d359c626
6
+ metadata.gz: e858567781def0a409f9d5a798a1065e36d05d4a8764fb512661cd0b97ca0fc24027c68a6b1d662bf6508dc68f23077a1f7a394420ece810ac344a38acacffd7
7
+ data.tar.gz: e5605b276c92fac263f6a1cecf802e9172bbf3a849cceb90ebb4f6e4107945f557fe036c9ab391d6e663481e010e11dfedb5ef57c5e9ee21518f1b69f1462167
data/.travis.yml CHANGED
@@ -1,6 +1,5 @@
1
- language: ruby
1
+ lang: ruby
2
2
  rvm:
3
- - ruby-1.9.3-p484
4
- - ruby-2.0.0-p353
5
- - ruby-2.1.0
3
+ - 2.0.0
4
+ - 2.1.4
6
5
 
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
+
@@ -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", "create a new puppet module."
14
- method_option :nodoc, :type => :boolean, :desc => 'create new puppet module without documentation', :default => false
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
@@ -1,3 +1,3 @@
1
1
  module Pumog
2
- VERSION = '1.0.1'
2
+ VERSION = '1.1.0'
3
3
  end
@@ -0,0 +1,8 @@
1
+ <% if @nodoc -%># === Author
2
+ #
3
+ # * <%= @author%> <<%= @email %>>
4
+ #
5
+ #
6
+ <% end %>class <%= @name %>::init {
7
+ include <%= @name %>::package
8
+ }
@@ -3,7 +3,7 @@
3
3
  # * <%= @author%> <<%= @email %>>
4
4
  #
5
5
  #
6
- <% end %>class <%= @module_name %>::package {
6
+ <% end %>class <%= @name %>::package {
7
7
  package { '<package-name>':
8
8
  ensure => latest,
9
9
  }
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 modules with this templates}
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.1
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-10-20 00:00:00.000000000 Z
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 modules with this templates
103
+ summary: Create new puppet module with this template.
103
104
  test_files: []
104
105
  has_rdoc:
@@ -1,8 +0,0 @@
1
- <% if @nodoc -%># === Author
2
- #
3
- # * <%= @author%> <<%= @email %>>
4
- #
5
- #
6
- <% end %>class <%= @module_name %>::init {
7
- include <%= @module_name %>::package
8
- }