puppet-module 0.3.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.
Files changed (159) hide show
  1. data/CHANGES.markdown +91 -0
  2. data/LICENSE +17 -0
  3. data/README.markdown +221 -0
  4. data/Rakefile +87 -0
  5. data/VERSION +1 -0
  6. data/bin/puppet-module +7 -0
  7. data/lib/puppet/module/tool.rb +124 -0
  8. data/lib/puppet/module/tool/applications.rb +18 -0
  9. data/lib/puppet/module/tool/applications/application.rb +83 -0
  10. data/lib/puppet/module/tool/applications/builder.rb +88 -0
  11. data/lib/puppet/module/tool/applications/checksummer.rb +38 -0
  12. data/lib/puppet/module/tool/applications/cleaner.rb +14 -0
  13. data/lib/puppet/module/tool/applications/freezer.rb +20 -0
  14. data/lib/puppet/module/tool/applications/generator.rb +117 -0
  15. data/lib/puppet/module/tool/applications/installer.rb +83 -0
  16. data/lib/puppet/module/tool/applications/registrar.rb +34 -0
  17. data/lib/puppet/module/tool/applications/releaser.rb +48 -0
  18. data/lib/puppet/module/tool/applications/searcher.rb +34 -0
  19. data/lib/puppet/module/tool/applications/unpacker.rb +69 -0
  20. data/lib/puppet/module/tool/applications/unreleaser.rb +42 -0
  21. data/lib/puppet/module/tool/cache.rb +56 -0
  22. data/lib/puppet/module/tool/checksums.rb +52 -0
  23. data/lib/puppet/module/tool/cli.rb +127 -0
  24. data/lib/puppet/module/tool/contents_description.rb +84 -0
  25. data/lib/puppet/module/tool/dependency.rb +26 -0
  26. data/lib/puppet/module/tool/metadata.rb +80 -0
  27. data/lib/puppet/module/tool/modulefile.rb +47 -0
  28. data/lib/puppet/module/tool/repository.rb +74 -0
  29. data/lib/puppet/module/tool/skeleton.rb +39 -0
  30. data/lib/puppet/module/tool/utils.rb +9 -0
  31. data/lib/puppet/module/tool/utils/interrogation.rb +39 -0
  32. data/lib/puppet/module/tool/utils/settings.rb +36 -0
  33. data/lib/puppet/module/tool/utils/uri.rb +16 -0
  34. data/spec/fixtures/releases/jamtur01-apache/Modulefile +2 -0
  35. data/spec/fixtures/releases/jamtur01-apache/files/httpd +24 -0
  36. data/spec/fixtures/releases/jamtur01-apache/files/test.vhost +18 -0
  37. data/spec/fixtures/releases/jamtur01-apache/lib/puppet/provider/a2mod/debian.rb +21 -0
  38. data/spec/fixtures/releases/jamtur01-apache/lib/puppet/type/a2mod.rb +12 -0
  39. data/spec/fixtures/releases/jamtur01-apache/manifests/dev.pp +5 -0
  40. data/spec/fixtures/releases/jamtur01-apache/manifests/init.pp +34 -0
  41. data/spec/fixtures/releases/jamtur01-apache/manifests/params.pp +17 -0
  42. data/spec/fixtures/releases/jamtur01-apache/manifests/php.pp +5 -0
  43. data/spec/fixtures/releases/jamtur01-apache/manifests/ssl.pp +15 -0
  44. data/spec/fixtures/releases/jamtur01-apache/manifests/vhost.pp +15 -0
  45. data/spec/fixtures/releases/jamtur01-apache/metadata.json +1 -0
  46. data/spec/fixtures/releases/jamtur01-apache/templates/vhost-default.conf.erb +20 -0
  47. data/spec/fixtures/releases/jamtur01-apache/tests/apache.pp +1 -0
  48. data/spec/fixtures/releases/jamtur01-apache/tests/dev.pp +1 -0
  49. data/spec/fixtures/releases/jamtur01-apache/tests/init.pp +1 -0
  50. data/spec/fixtures/releases/jamtur01-apache/tests/php.pp +1 -0
  51. data/spec/fixtures/releases/jamtur01-apache/tests/ssl.pp +1 -0
  52. data/spec/fixtures/releases/jamtur01-apache/tests/vhost.pp +2 -0
  53. data/spec/integration/cli_spec.rb +373 -0
  54. data/spec/spec.opts +1 -0
  55. data/spec/spec_helper.rb +15 -0
  56. data/spec/support/output_support.rb +19 -0
  57. data/spec/support/stub_http_support.rb +14 -0
  58. data/spec/support/testdir_support.rb +26 -0
  59. data/spec/unit/application_spec.rb +25 -0
  60. data/spec/unit/repository_spec.rb +51 -0
  61. data/templates/generator/Modulefile.erb +5 -0
  62. data/templates/generator/README.erb +3 -0
  63. data/templates/generator/files/README.markdown +22 -0
  64. data/templates/generator/lib/puppet/facter/README.markdown +22 -0
  65. data/templates/generator/lib/puppet/parser/functions/README.markdown +17 -0
  66. data/templates/generator/lib/puppet/provider/README.markdown +14 -0
  67. data/templates/generator/lib/puppet/type/README.markdown +14 -0
  68. data/templates/generator/manifests/README.markdown +28 -0
  69. data/templates/generator/manifests/init.pp.erb +17 -0
  70. data/templates/generator/metadata.json +12 -0
  71. data/templates/generator/spec/README.markdown +7 -0
  72. data/templates/generator/spec/spec.opts +6 -0
  73. data/templates/generator/spec/spec_helper.rb +18 -0
  74. data/templates/generator/spec/unit/puppet/provider/README.markdown +4 -0
  75. data/templates/generator/spec/unit/puppet/type/README.markdown +4 -0
  76. data/templates/generator/templates/README.markdown +23 -0
  77. data/templates/generator/tests/init.pp.erb +1 -0
  78. data/vendor/facets-2.8.2-partial/lib/facets/kernel/returning.rb +23 -0
  79. data/vendor/facets-2.8.2-partial/lib/facets/kernel/tap.rb +39 -0
  80. data/vendor/multipart-post-1.0/Manifest.txt +9 -0
  81. data/vendor/multipart-post-1.0/README.txt +61 -0
  82. data/vendor/multipart-post-1.0/Rakefile +21 -0
  83. data/vendor/multipart-post-1.0/lib/composite_io.rb +89 -0
  84. data/vendor/multipart-post-1.0/lib/multipartable.rb +13 -0
  85. data/vendor/multipart-post-1.0/lib/net/http/post/multipart.rb +27 -0
  86. data/vendor/multipart-post-1.0/lib/parts.rb +66 -0
  87. data/vendor/multipart-post-1.0/test/net/http/post/test_multipart.rb +55 -0
  88. data/vendor/multipart-post-1.0/test/test_composite_io.rb +50 -0
  89. data/vendor/thor-852190ae/CHANGELOG.rdoc +89 -0
  90. data/vendor/thor-852190ae/LICENSE +20 -0
  91. data/vendor/thor-852190ae/README.rdoc +297 -0
  92. data/vendor/thor-852190ae/REVISION +1 -0
  93. data/vendor/thor-852190ae/Thorfile +69 -0
  94. data/vendor/thor-852190ae/bin/rake2thor +86 -0
  95. data/vendor/thor-852190ae/bin/thor +6 -0
  96. data/vendor/thor-852190ae/lib/thor.rb +244 -0
  97. data/vendor/thor-852190ae/lib/thor/actions.rb +275 -0
  98. data/vendor/thor-852190ae/lib/thor/actions/create_file.rb +103 -0
  99. data/vendor/thor-852190ae/lib/thor/actions/directory.rb +91 -0
  100. data/vendor/thor-852190ae/lib/thor/actions/empty_directory.rb +134 -0
  101. data/vendor/thor-852190ae/lib/thor/actions/file_manipulation.rb +223 -0
  102. data/vendor/thor-852190ae/lib/thor/actions/inject_into_file.rb +104 -0
  103. data/vendor/thor-852190ae/lib/thor/base.rb +540 -0
  104. data/vendor/thor-852190ae/lib/thor/core_ext/file_binary_read.rb +9 -0
  105. data/vendor/thor-852190ae/lib/thor/core_ext/hash_with_indifferent_access.rb +75 -0
  106. data/vendor/thor-852190ae/lib/thor/core_ext/ordered_hash.rb +100 -0
  107. data/vendor/thor-852190ae/lib/thor/error.rb +30 -0
  108. data/vendor/thor-852190ae/lib/thor/group.rb +271 -0
  109. data/vendor/thor-852190ae/lib/thor/invocation.rb +180 -0
  110. data/vendor/thor-852190ae/lib/thor/parser.rb +4 -0
  111. data/vendor/thor-852190ae/lib/thor/parser/argument.rb +67 -0
  112. data/vendor/thor-852190ae/lib/thor/parser/arguments.rb +150 -0
  113. data/vendor/thor-852190ae/lib/thor/parser/option.rb +128 -0
  114. data/vendor/thor-852190ae/lib/thor/parser/options.rb +169 -0
  115. data/vendor/thor-852190ae/lib/thor/rake_compat.rb +66 -0
  116. data/vendor/thor-852190ae/lib/thor/runner.rb +314 -0
  117. data/vendor/thor-852190ae/lib/thor/shell.rb +83 -0
  118. data/vendor/thor-852190ae/lib/thor/shell/basic.rb +239 -0
  119. data/vendor/thor-852190ae/lib/thor/shell/color.rb +108 -0
  120. data/vendor/thor-852190ae/lib/thor/task.rb +102 -0
  121. data/vendor/thor-852190ae/lib/thor/util.rb +230 -0
  122. data/vendor/thor-852190ae/lib/thor/version.rb +3 -0
  123. data/vendor/thor-852190ae/spec/actions/create_file_spec.rb +170 -0
  124. data/vendor/thor-852190ae/spec/actions/directory_spec.rb +131 -0
  125. data/vendor/thor-852190ae/spec/actions/empty_directory_spec.rb +91 -0
  126. data/vendor/thor-852190ae/spec/actions/file_manipulation_spec.rb +271 -0
  127. data/vendor/thor-852190ae/spec/actions/inject_into_file_spec.rb +135 -0
  128. data/vendor/thor-852190ae/spec/actions_spec.rb +292 -0
  129. data/vendor/thor-852190ae/spec/base_spec.rb +263 -0
  130. data/vendor/thor-852190ae/spec/core_ext/hash_with_indifferent_access_spec.rb +43 -0
  131. data/vendor/thor-852190ae/spec/core_ext/ordered_hash_spec.rb +115 -0
  132. data/vendor/thor-852190ae/spec/fixtures/application.rb +2 -0
  133. data/vendor/thor-852190ae/spec/fixtures/bundle/execute.rb +6 -0
  134. data/vendor/thor-852190ae/spec/fixtures/bundle/main.thor +1 -0
  135. data/vendor/thor-852190ae/spec/fixtures/doc/%file_name%.rb.tt +1 -0
  136. data/vendor/thor-852190ae/spec/fixtures/doc/README +3 -0
  137. data/vendor/thor-852190ae/spec/fixtures/doc/config.rb +1 -0
  138. data/vendor/thor-852190ae/spec/fixtures/group.thor +83 -0
  139. data/vendor/thor-852190ae/spec/fixtures/invoke.thor +112 -0
  140. data/vendor/thor-852190ae/spec/fixtures/script.thor +140 -0
  141. data/vendor/thor-852190ae/spec/fixtures/task.thor +10 -0
  142. data/vendor/thor-852190ae/spec/group_spec.rb +171 -0
  143. data/vendor/thor-852190ae/spec/invocation_spec.rb +107 -0
  144. data/vendor/thor-852190ae/spec/parser/argument_spec.rb +47 -0
  145. data/vendor/thor-852190ae/spec/parser/arguments_spec.rb +64 -0
  146. data/vendor/thor-852190ae/spec/parser/option_spec.rb +202 -0
  147. data/vendor/thor-852190ae/spec/parser/options_spec.rb +292 -0
  148. data/vendor/thor-852190ae/spec/rake_compat_spec.rb +68 -0
  149. data/vendor/thor-852190ae/spec/runner_spec.rb +202 -0
  150. data/vendor/thor-852190ae/spec/shell/basic_spec.rb +205 -0
  151. data/vendor/thor-852190ae/spec/shell/color_spec.rb +41 -0
  152. data/vendor/thor-852190ae/spec/shell_spec.rb +34 -0
  153. data/vendor/thor-852190ae/spec/spec.opts +1 -0
  154. data/vendor/thor-852190ae/spec/spec_helper.rb +54 -0
  155. data/vendor/thor-852190ae/spec/task_spec.rb +69 -0
  156. data/vendor/thor-852190ae/spec/thor_spec.rb +237 -0
  157. data/vendor/thor-852190ae/spec/util_spec.rb +167 -0
  158. data/vendor/thor-852190ae/thor.gemspec +120 -0
  159. metadata +229 -0
@@ -0,0 +1,167 @@
1
+ require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
2
+
3
+ module Thor::Util
4
+ def self.clear_user_home!
5
+ @@user_home = nil
6
+ end
7
+ end
8
+
9
+ describe Thor::Util do
10
+ describe "#find_by_namespace" do
11
+ it "returns 'default' if no namespace is given" do
12
+ Thor::Util.find_by_namespace('').must == Scripts::MyDefaults
13
+ end
14
+
15
+ it "adds 'default' if namespace starts with :" do
16
+ Thor::Util.find_by_namespace(':child').must == Scripts::ChildDefault
17
+ end
18
+
19
+ it "returns nil if the namespace can't be found" do
20
+ Thor::Util.find_by_namespace('thor:core_ext:ordered_hash').must be_nil
21
+ end
22
+
23
+ it "returns a class if it matches the namespace" do
24
+ Thor::Util.find_by_namespace('app:broken:counter').must == BrokenCounter
25
+ end
26
+
27
+ it "matches classes default namespace" do
28
+ Thor::Util.find_by_namespace('scripts:my_script').must == Scripts::MyScript
29
+ end
30
+ end
31
+
32
+ describe "#namespace_from_thor_class" do
33
+ it "replaces constant nesting with task namespacing" do
34
+ Thor::Util.namespace_from_thor_class("Foo::Bar::Baz").must == "foo:bar:baz"
35
+ end
36
+
37
+ it "snake-cases component strings" do
38
+ Thor::Util.namespace_from_thor_class("FooBar::BarBaz::BazBoom").must == "foo_bar:bar_baz:baz_boom"
39
+ end
40
+
41
+ it "accepts class and module objects" do
42
+ Thor::Util.namespace_from_thor_class(Thor::CoreExt::OrderedHash).must == "thor:core_ext:ordered_hash"
43
+ Thor::Util.namespace_from_thor_class(Thor::Util).must == "thor:util"
44
+ end
45
+
46
+ it "removes Thor::Sandbox namespace" do
47
+ Thor::Util.namespace_from_thor_class("Thor::Sandbox::Package").must == "package"
48
+ end
49
+ end
50
+
51
+ describe "#namespaces_in_content" do
52
+ it "returns an array of names of constants defined in the string" do
53
+ list = Thor::Util.namespaces_in_content("class Foo; class Bar < Thor; end; end; class Baz; class Bat; end; end")
54
+ list.must include("foo:bar")
55
+ list.must_not include("bar:bat")
56
+ end
57
+
58
+ it "doesn't put the newly-defined constants in the enclosing namespace" do
59
+ Thor::Util.namespaces_in_content("class Blat; end")
60
+ defined?(Blat).must_not be
61
+ defined?(Thor::Sandbox::Blat).must be
62
+ end
63
+ end
64
+
65
+ describe "#snake_case" do
66
+ it "preserves no-cap strings" do
67
+ Thor::Util.snake_case("foo").must == "foo"
68
+ Thor::Util.snake_case("foo_bar").must == "foo_bar"
69
+ end
70
+
71
+ it "downcases all-caps strings" do
72
+ Thor::Util.snake_case("FOO").must == "foo"
73
+ Thor::Util.snake_case("FOO_BAR").must == "foo_bar"
74
+ end
75
+
76
+ it "downcases initial-cap strings" do
77
+ Thor::Util.snake_case("Foo").must == "foo"
78
+ end
79
+
80
+ it "replaces camel-casing with underscores" do
81
+ Thor::Util.snake_case("FooBarBaz").must == "foo_bar_baz"
82
+ Thor::Util.snake_case("Foo_BarBaz").must == "foo_bar_baz"
83
+ end
84
+
85
+ it "places underscores between multiple capitals" do
86
+ Thor::Util.snake_case("ABClass").must == "a_b_class"
87
+ end
88
+ end
89
+
90
+ describe "#find_class_and_task_by_namespace" do
91
+ it "returns a Thor::Group class if full namespace matches" do
92
+ Thor::Util.find_class_and_task_by_namespace("my_counter").must == [MyCounter, nil]
93
+ end
94
+
95
+ it "returns a Thor class if full namespace matches" do
96
+ Thor::Util.find_class_and_task_by_namespace("thor").must == [Thor, nil]
97
+ end
98
+
99
+ it "returns a Thor class and the task name" do
100
+ Thor::Util.find_class_and_task_by_namespace("thor:help").must == [Thor, "help"]
101
+ end
102
+
103
+ it "fallbacks in the namespace:task look up even if a full namespace does not match" do
104
+ Thor.const_set(:Help, Module.new)
105
+ Thor::Util.find_class_and_task_by_namespace("thor:help").must == [Thor, "help"]
106
+ Thor.send :remove_const, :Help
107
+ end
108
+
109
+ describe 'errors' do
110
+ it "raises an error if the Thor class or task can't be found" do
111
+ lambda {
112
+ Thor::Util.find_class_and_task_by_namespace!("foobar")
113
+ }.must raise_error(Thor::Error, 'Could not find namespace or task "foobar".')
114
+ end
115
+ end
116
+ end
117
+
118
+ describe "#thor_classes_in" do
119
+ it "returns thor classes inside the given class" do
120
+ Thor::Util.thor_classes_in(MyScript).must == [MyScript::AnotherScript]
121
+ Thor::Util.thor_classes_in(MyScript::AnotherScript).must be_empty
122
+ end
123
+ end
124
+
125
+ describe "#user_home" do
126
+ before(:each) do
127
+ ENV.stub!(:[])
128
+ Thor::Util.clear_user_home!
129
+ end
130
+
131
+ it "returns the user path if none variable is set on the environment" do
132
+ Thor::Util.user_home.must == File.expand_path("~")
133
+ end
134
+
135
+ it "returns the *unix system path if file cannot be expanded and separator does not exist" do
136
+ File.should_receive(:expand_path).with("~").and_raise(RuntimeError)
137
+ previous_value = File::ALT_SEPARATOR
138
+ capture(:stderr){ File.const_set(:ALT_SEPARATOR, false) }
139
+ Thor::Util.user_home.must == "/"
140
+ capture(:stderr){ File.const_set(:ALT_SEPARATOR, previous_value) }
141
+ end
142
+
143
+ it "returns the windows system path if file cannot be expanded and a separator exists" do
144
+ File.should_receive(:expand_path).with("~").and_raise(RuntimeError)
145
+ previous_value = File::ALT_SEPARATOR
146
+ capture(:stderr){ File.const_set(:ALT_SEPARATOR, true) }
147
+ Thor::Util.user_home.must == "C:/"
148
+ capture(:stderr){ File.const_set(:ALT_SEPARATOR, previous_value) }
149
+ end
150
+
151
+ it "returns HOME/.thor if set" do
152
+ ENV.stub!(:[]).with("HOME").and_return("/home/user/")
153
+ Thor::Util.user_home.must == "/home/user/"
154
+ end
155
+
156
+ it "returns path with HOMEDRIVE and HOMEPATH if set" do
157
+ ENV.stub!(:[]).with("HOMEDRIVE").and_return("D:/")
158
+ ENV.stub!(:[]).with("HOMEPATH").and_return("Documents and Settings/James")
159
+ Thor::Util.user_home.must == "D:/Documents and Settings/James"
160
+ end
161
+
162
+ it "returns APPDATA/.thor if set" do
163
+ ENV.stub!(:[]).with("APPDATA").and_return("/home/user/")
164
+ Thor::Util.user_home.must == "/home/user/"
165
+ end
166
+ end
167
+ end
@@ -0,0 +1,120 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Thorfile, and run the gemspec command
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = %q{thor}
8
+ s.version = "0.13.4"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["Yehuda Katz", "Jos\303\251 Valim"]
12
+ s.date = %q{2010-02-26}
13
+ s.description = %q{A scripting framework that replaces rake, sake and rubigen}
14
+ s.email = %q{ruby-thor@googlegroups.com}
15
+ s.executables = ["thor", "rake2thor"]
16
+ s.extra_rdoc_files = [
17
+ "CHANGELOG.rdoc",
18
+ "LICENSE",
19
+ "README.rdoc",
20
+ "Thorfile"
21
+ ]
22
+ s.files = [
23
+ "CHANGELOG.rdoc",
24
+ "LICENSE",
25
+ "README.rdoc",
26
+ "Thorfile",
27
+ "bin/rake2thor",
28
+ "bin/thor",
29
+ "lib/thor.rb",
30
+ "lib/thor/actions.rb",
31
+ "lib/thor/actions/create_file.rb",
32
+ "lib/thor/actions/directory.rb",
33
+ "lib/thor/actions/empty_directory.rb",
34
+ "lib/thor/actions/file_manipulation.rb",
35
+ "lib/thor/actions/inject_into_file.rb",
36
+ "lib/thor/base.rb",
37
+ "lib/thor/core_ext/file_binary_read.rb",
38
+ "lib/thor/core_ext/hash_with_indifferent_access.rb",
39
+ "lib/thor/core_ext/ordered_hash.rb",
40
+ "lib/thor/error.rb",
41
+ "lib/thor/group.rb",
42
+ "lib/thor/invocation.rb",
43
+ "lib/thor/parser.rb",
44
+ "lib/thor/parser/argument.rb",
45
+ "lib/thor/parser/arguments.rb",
46
+ "lib/thor/parser/option.rb",
47
+ "lib/thor/parser/options.rb",
48
+ "lib/thor/rake_compat.rb",
49
+ "lib/thor/runner.rb",
50
+ "lib/thor/shell.rb",
51
+ "lib/thor/shell/basic.rb",
52
+ "lib/thor/shell/color.rb",
53
+ "lib/thor/task.rb",
54
+ "lib/thor/util.rb",
55
+ "lib/thor/version.rb"
56
+ ]
57
+ s.homepage = %q{http://yehudakatz.com}
58
+ s.rdoc_options = ["--charset=UTF-8"]
59
+ s.require_paths = ["lib"]
60
+ s.rubyforge_project = %q{textmate}
61
+ s.rubygems_version = %q{1.3.5}
62
+ s.summary = %q{A scripting framework that replaces rake, sake and rubigen}
63
+ s.test_files = [
64
+ "spec/actions/create_file_spec.rb",
65
+ "spec/actions/directory_spec.rb",
66
+ "spec/actions/empty_directory_spec.rb",
67
+ "spec/actions/file_manipulation_spec.rb",
68
+ "spec/actions/inject_into_file_spec.rb",
69
+ "spec/actions_spec.rb",
70
+ "spec/base_spec.rb",
71
+ "spec/core_ext/hash_with_indifferent_access_spec.rb",
72
+ "spec/core_ext/ordered_hash_spec.rb",
73
+ "spec/fixtures/application.rb",
74
+ "spec/fixtures/bundle/execute.rb",
75
+ "spec/fixtures/doc/config.rb",
76
+ "spec/group_spec.rb",
77
+ "spec/invocation_spec.rb",
78
+ "spec/parser/argument_spec.rb",
79
+ "spec/parser/arguments_spec.rb",
80
+ "spec/parser/option_spec.rb",
81
+ "spec/parser/options_spec.rb",
82
+ "spec/rake_compat_spec.rb",
83
+ "spec/runner_spec.rb",
84
+ "spec/shell/basic_spec.rb",
85
+ "spec/shell/color_spec.rb",
86
+ "spec/shell_spec.rb",
87
+ "spec/spec_helper.rb",
88
+ "spec/task_spec.rb",
89
+ "spec/thor_spec.rb",
90
+ "spec/util_spec.rb",
91
+ "spec/actions",
92
+ "spec/core_ext",
93
+ "spec/fixtures",
94
+ "spec/fixtures/bundle",
95
+ "spec/fixtures/bundle/main.thor",
96
+ "spec/fixtures/doc",
97
+ "spec/fixtures/doc/%file_name%.rb.tt",
98
+ "spec/fixtures/doc/components",
99
+ "spec/fixtures/doc/README",
100
+ "spec/fixtures/group.thor",
101
+ "spec/fixtures/invoke.thor",
102
+ "spec/fixtures/script.thor",
103
+ "spec/fixtures/task.thor",
104
+ "spec/parser",
105
+ "spec/sandbox",
106
+ "spec/shell",
107
+ "spec/spec.opts"
108
+ ]
109
+
110
+ if s.respond_to? :specification_version then
111
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
112
+ s.specification_version = 3
113
+
114
+ if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
115
+ else
116
+ end
117
+ else
118
+ end
119
+ end
120
+
metadata ADDED
@@ -0,0 +1,229 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: puppet-module
3
+ version: !ruby/object:Gem::Version
4
+ prerelease: false
5
+ segments:
6
+ - 0
7
+ - 3
8
+ - 0
9
+ version: 0.3.0
10
+ platform: ruby
11
+ authors:
12
+ - Igal Koshevoy
13
+ autorequire:
14
+ bindir: bin
15
+ cert_chain: []
16
+
17
+ date: 2010-05-27 00:00:00 +10:00
18
+ default_executable:
19
+ dependencies: []
20
+
21
+ description: The Puppet Module Tool creates, installs and searches for Puppet modules.
22
+ email: igal@pragmaticraft.com
23
+ executables:
24
+ - puppet-module
25
+ extensions: []
26
+
27
+ extra_rdoc_files: []
28
+
29
+ files:
30
+ - CHANGES.markdown
31
+ - LICENSE
32
+ - README.markdown
33
+ - Rakefile
34
+ - VERSION
35
+ - bin/puppet-module
36
+ - lib/puppet/module/tool/checksums.rb
37
+ - lib/puppet/module/tool/applications.rb
38
+ - lib/puppet/module/tool/contents_description.rb
39
+ - lib/puppet/module/tool/utils.rb
40
+ - lib/puppet/module/tool/cache.rb
41
+ - lib/puppet/module/tool/applications/releaser.rb
42
+ - lib/puppet/module/tool/applications/freezer.rb
43
+ - lib/puppet/module/tool/applications/cleaner.rb
44
+ - lib/puppet/module/tool/applications/checksummer.rb
45
+ - lib/puppet/module/tool/applications/generator.rb
46
+ - lib/puppet/module/tool/applications/application.rb
47
+ - lib/puppet/module/tool/applications/builder.rb
48
+ - lib/puppet/module/tool/applications/unpacker.rb
49
+ - lib/puppet/module/tool/applications/registrar.rb
50
+ - lib/puppet/module/tool/applications/unreleaser.rb
51
+ - lib/puppet/module/tool/applications/searcher.rb
52
+ - lib/puppet/module/tool/applications/installer.rb
53
+ - lib/puppet/module/tool/utils/settings.rb
54
+ - lib/puppet/module/tool/utils/interrogation.rb
55
+ - lib/puppet/module/tool/utils/uri.rb
56
+ - lib/puppet/module/tool/metadata.rb
57
+ - lib/puppet/module/tool/repository.rb
58
+ - lib/puppet/module/tool/cli.rb
59
+ - lib/puppet/module/tool/dependency.rb
60
+ - lib/puppet/module/tool/modulefile.rb
61
+ - lib/puppet/module/tool/skeleton.rb
62
+ - lib/puppet/module/tool.rb
63
+ - templates/generator/metadata.json
64
+ - templates/generator/tests/init.pp.erb
65
+ - templates/generator/files/README.markdown
66
+ - templates/generator/spec/README.markdown
67
+ - templates/generator/spec/spec_helper.rb
68
+ - templates/generator/spec/spec.opts
69
+ - templates/generator/spec/unit/puppet/provider/README.markdown
70
+ - templates/generator/spec/unit/puppet/type/README.markdown
71
+ - templates/generator/README.erb
72
+ - templates/generator/templates/README.markdown
73
+ - templates/generator/Modulefile.erb
74
+ - templates/generator/lib/puppet/facter/README.markdown
75
+ - templates/generator/lib/puppet/parser/functions/README.markdown
76
+ - templates/generator/lib/puppet/provider/README.markdown
77
+ - templates/generator/lib/puppet/type/README.markdown
78
+ - templates/generator/manifests/README.markdown
79
+ - templates/generator/manifests/init.pp.erb
80
+ - vendor/multipart-post-1.0/README.txt
81
+ - vendor/multipart-post-1.0/Rakefile
82
+ - vendor/multipart-post-1.0/test/test_composite_io.rb
83
+ - vendor/multipart-post-1.0/test/net/http/post/test_multipart.rb
84
+ - vendor/multipart-post-1.0/lib/composite_io.rb
85
+ - vendor/multipart-post-1.0/lib/parts.rb
86
+ - vendor/multipart-post-1.0/lib/net/http/post/multipart.rb
87
+ - vendor/multipart-post-1.0/lib/multipartable.rb
88
+ - vendor/multipart-post-1.0/Manifest.txt
89
+ - vendor/facets-2.8.2-partial/lib/facets/kernel/tap.rb
90
+ - vendor/facets-2.8.2-partial/lib/facets/kernel/returning.rb
91
+ - vendor/thor-852190ae/REVISION
92
+ - vendor/thor-852190ae/spec/fixtures/bundle/main.thor
93
+ - vendor/thor-852190ae/spec/fixtures/bundle/execute.rb
94
+ - vendor/thor-852190ae/spec/fixtures/application.rb
95
+ - vendor/thor-852190ae/spec/fixtures/task.thor
96
+ - vendor/thor-852190ae/spec/fixtures/group.thor
97
+ - vendor/thor-852190ae/spec/fixtures/script.thor
98
+ - vendor/thor-852190ae/spec/fixtures/doc/config.rb
99
+ - vendor/thor-852190ae/spec/fixtures/doc/%file_name%.rb.tt
100
+ - vendor/thor-852190ae/spec/fixtures/doc/README
101
+ - vendor/thor-852190ae/spec/fixtures/invoke.thor
102
+ - vendor/thor-852190ae/spec/runner_spec.rb
103
+ - vendor/thor-852190ae/spec/shell_spec.rb
104
+ - vendor/thor-852190ae/spec/base_spec.rb
105
+ - vendor/thor-852190ae/spec/group_spec.rb
106
+ - vendor/thor-852190ae/spec/core_ext/ordered_hash_spec.rb
107
+ - vendor/thor-852190ae/spec/core_ext/hash_with_indifferent_access_spec.rb
108
+ - vendor/thor-852190ae/spec/invocation_spec.rb
109
+ - vendor/thor-852190ae/spec/task_spec.rb
110
+ - vendor/thor-852190ae/spec/actions_spec.rb
111
+ - vendor/thor-852190ae/spec/parser/arguments_spec.rb
112
+ - vendor/thor-852190ae/spec/parser/argument_spec.rb
113
+ - vendor/thor-852190ae/spec/parser/options_spec.rb
114
+ - vendor/thor-852190ae/spec/parser/option_spec.rb
115
+ - vendor/thor-852190ae/spec/thor_spec.rb
116
+ - vendor/thor-852190ae/spec/spec_helper.rb
117
+ - vendor/thor-852190ae/spec/actions/directory_spec.rb
118
+ - vendor/thor-852190ae/spec/actions/file_manipulation_spec.rb
119
+ - vendor/thor-852190ae/spec/actions/empty_directory_spec.rb
120
+ - vendor/thor-852190ae/spec/actions/create_file_spec.rb
121
+ - vendor/thor-852190ae/spec/actions/inject_into_file_spec.rb
122
+ - vendor/thor-852190ae/spec/spec.opts
123
+ - vendor/thor-852190ae/spec/util_spec.rb
124
+ - vendor/thor-852190ae/spec/rake_compat_spec.rb
125
+ - vendor/thor-852190ae/spec/shell/color_spec.rb
126
+ - vendor/thor-852190ae/spec/shell/basic_spec.rb
127
+ - vendor/thor-852190ae/CHANGELOG.rdoc
128
+ - vendor/thor-852190ae/bin/thor
129
+ - vendor/thor-852190ae/bin/rake2thor
130
+ - vendor/thor-852190ae/thor.gemspec
131
+ - vendor/thor-852190ae/README.rdoc
132
+ - vendor/thor-852190ae/Thorfile
133
+ - vendor/thor-852190ae/LICENSE
134
+ - vendor/thor-852190ae/lib/thor.rb
135
+ - vendor/thor-852190ae/lib/thor/actions.rb
136
+ - vendor/thor-852190ae/lib/thor/group.rb
137
+ - vendor/thor-852190ae/lib/thor/rake_compat.rb
138
+ - vendor/thor-852190ae/lib/thor/base.rb
139
+ - vendor/thor-852190ae/lib/thor/core_ext/file_binary_read.rb
140
+ - vendor/thor-852190ae/lib/thor/core_ext/ordered_hash.rb
141
+ - vendor/thor-852190ae/lib/thor/core_ext/hash_with_indifferent_access.rb
142
+ - vendor/thor-852190ae/lib/thor/invocation.rb
143
+ - vendor/thor-852190ae/lib/thor/parser/options.rb
144
+ - vendor/thor-852190ae/lib/thor/parser/arguments.rb
145
+ - vendor/thor-852190ae/lib/thor/parser/argument.rb
146
+ - vendor/thor-852190ae/lib/thor/parser/option.rb
147
+ - vendor/thor-852190ae/lib/thor/actions/directory.rb
148
+ - vendor/thor-852190ae/lib/thor/actions/file_manipulation.rb
149
+ - vendor/thor-852190ae/lib/thor/actions/empty_directory.rb
150
+ - vendor/thor-852190ae/lib/thor/actions/create_file.rb
151
+ - vendor/thor-852190ae/lib/thor/actions/inject_into_file.rb
152
+ - vendor/thor-852190ae/lib/thor/task.rb
153
+ - vendor/thor-852190ae/lib/thor/error.rb
154
+ - vendor/thor-852190ae/lib/thor/util.rb
155
+ - vendor/thor-852190ae/lib/thor/shell.rb
156
+ - vendor/thor-852190ae/lib/thor/runner.rb
157
+ - vendor/thor-852190ae/lib/thor/version.rb
158
+ - vendor/thor-852190ae/lib/thor/parser.rb
159
+ - vendor/thor-852190ae/lib/thor/shell/basic.rb
160
+ - vendor/thor-852190ae/lib/thor/shell/color.rb
161
+ has_rdoc: true
162
+ homepage: http://github.com/puppetlabs/puppet-module-tool
163
+ licenses: []
164
+
165
+ post_install_message: |
166
+ ******************************************************************************
167
+
168
+ Thank you for installing puppet-module from Puppet Labs!
169
+
170
+ * Usage instructions: read "README.markdown" or run `puppet-module usage`
171
+ * Changelog: read "CHANGES.markdown" or run `puppet-module changelog`
172
+ * Puppet Forge: visit http://forge.puppetlabs.com/
173
+
174
+ ******************************************************************************
175
+
176
+ rdoc_options:
177
+ - --main
178
+ - README.rdoc
179
+ require_paths:
180
+ - lib
181
+ required_ruby_version: !ruby/object:Gem::Requirement
182
+ requirements:
183
+ - - ">="
184
+ - !ruby/object:Gem::Version
185
+ segments:
186
+ - 0
187
+ version: "0"
188
+ required_rubygems_version: !ruby/object:Gem::Requirement
189
+ requirements:
190
+ - - ">="
191
+ - !ruby/object:Gem::Version
192
+ segments:
193
+ - 0
194
+ version: "0"
195
+ requirements: []
196
+
197
+ rubyforge_project:
198
+ rubygems_version: 1.3.6
199
+ signing_key:
200
+ specification_version: 3
201
+ summary: The Puppet Module Tool manages Puppet modules
202
+ test_files:
203
+ - spec/fixtures/releases/jamtur01-apache/metadata.json
204
+ - spec/fixtures/releases/jamtur01-apache/tests/dev.pp
205
+ - spec/fixtures/releases/jamtur01-apache/tests/vhost.pp
206
+ - spec/fixtures/releases/jamtur01-apache/tests/php.pp
207
+ - spec/fixtures/releases/jamtur01-apache/tests/apache.pp
208
+ - spec/fixtures/releases/jamtur01-apache/tests/ssl.pp
209
+ - spec/fixtures/releases/jamtur01-apache/tests/init.pp
210
+ - spec/fixtures/releases/jamtur01-apache/files/httpd
211
+ - spec/fixtures/releases/jamtur01-apache/files/test.vhost
212
+ - spec/fixtures/releases/jamtur01-apache/Modulefile
213
+ - spec/fixtures/releases/jamtur01-apache/templates/vhost-default.conf.erb
214
+ - spec/fixtures/releases/jamtur01-apache/lib/puppet/provider/a2mod/debian.rb
215
+ - spec/fixtures/releases/jamtur01-apache/lib/puppet/type/a2mod.rb
216
+ - spec/fixtures/releases/jamtur01-apache/manifests/dev.pp
217
+ - spec/fixtures/releases/jamtur01-apache/manifests/vhost.pp
218
+ - spec/fixtures/releases/jamtur01-apache/manifests/params.pp
219
+ - spec/fixtures/releases/jamtur01-apache/manifests/php.pp
220
+ - spec/fixtures/releases/jamtur01-apache/manifests/ssl.pp
221
+ - spec/fixtures/releases/jamtur01-apache/manifests/init.pp
222
+ - spec/spec_helper.rb
223
+ - spec/spec.opts
224
+ - spec/support/stub_http_support.rb
225
+ - spec/support/output_support.rb
226
+ - spec/support/testdir_support.rb
227
+ - spec/unit/application_spec.rb
228
+ - spec/unit/repository_spec.rb
229
+ - spec/integration/cli_spec.rb