bunchr 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (46) hide show
  1. data/README.md +148 -116
  2. data/bunchr.gemspec +1 -1
  3. data/lib/bunchr/version.rb +1 -1
  4. data/lib/bunchr.rb +2 -0
  5. data/pkg/bunchr-0.1.1/README.md +355 -0
  6. data/pkg/bunchr-0.1.1/Rakefile +9 -0
  7. data/pkg/bunchr-0.1.1/TODO +7 -0
  8. data/pkg/bunchr-0.1.1/bunchr.gemspec +34 -0
  9. data/pkg/bunchr-0.1.1/doc/Bunchr/Logger.html +201 -0
  10. data/pkg/bunchr-0.1.1/doc/Bunchr/Ohai.html +201 -0
  11. data/pkg/bunchr-0.1.1/doc/Bunchr/Packages.html +1840 -0
  12. data/pkg/bunchr-0.1.1/doc/Bunchr/Software.html +1727 -0
  13. data/pkg/bunchr-0.1.1/doc/Bunchr/Utils.html +334 -0
  14. data/pkg/bunchr-0.1.1/doc/Bunchr.html +124 -0
  15. data/pkg/bunchr-0.1.1/doc/_index.html +181 -0
  16. data/pkg/bunchr-0.1.1/doc/class_list.html +47 -0
  17. data/pkg/bunchr-0.1.1/doc/css/common.css +1 -0
  18. data/pkg/bunchr-0.1.1/doc/css/full_list.css +55 -0
  19. data/pkg/bunchr-0.1.1/doc/css/style.css +322 -0
  20. data/pkg/bunchr-0.1.1/doc/file.README.html +376 -0
  21. data/pkg/bunchr-0.1.1/doc/file_list.html +49 -0
  22. data/pkg/bunchr-0.1.1/doc/frames.html +13 -0
  23. data/pkg/bunchr-0.1.1/doc/index.html +376 -0
  24. data/pkg/bunchr-0.1.1/doc/js/app.js +205 -0
  25. data/pkg/bunchr-0.1.1/doc/js/full_list.js +173 -0
  26. data/pkg/bunchr-0.1.1/doc/js/jquery.js +16 -0
  27. data/pkg/bunchr-0.1.1/doc/method_list.html +438 -0
  28. data/pkg/bunchr-0.1.1/doc/top-level-namespace.html +105 -0
  29. data/pkg/bunchr-0.1.1/example_recipes/autoconf.rake +18 -0
  30. data/pkg/bunchr-0.1.1/example_recipes/libyaml.rake +18 -0
  31. data/pkg/bunchr-0.1.1/example_recipes/openssl.rake +54 -0
  32. data/pkg/bunchr-0.1.1/example_recipes/ruby.rake +38 -0
  33. data/pkg/bunchr-0.1.1/example_recipes/sensu.rake +18 -0
  34. data/pkg/bunchr-0.1.1/example_recipes/sensu_bin_stubs.rake +17 -0
  35. data/pkg/bunchr-0.1.1/example_recipes/sensu_configs.rake +30 -0
  36. data/pkg/bunchr-0.1.1/example_recipes/sensu_dashboard.rake +17 -0
  37. data/pkg/bunchr-0.1.1/example_recipes/zlib.rake +32 -0
  38. data/pkg/bunchr-0.1.1/lib/bunchr/logger.rb +18 -0
  39. data/pkg/bunchr-0.1.1/lib/bunchr/ohai.rb +18 -0
  40. data/pkg/bunchr-0.1.1/lib/bunchr/packages.rb +176 -0
  41. data/pkg/bunchr-0.1.1/lib/bunchr/software.rb +164 -0
  42. data/pkg/bunchr-0.1.1/lib/bunchr/utils.rb +36 -0
  43. data/pkg/bunchr-0.1.1/lib/bunchr/version.rb +3 -0
  44. data/pkg/bunchr-0.1.1/lib/bunchr.rb +44 -0
  45. data/pkg/bunchr-0.1.1.gem +0 -0
  46. metadata +123 -62
@@ -0,0 +1,9 @@
1
+ require 'rubygems'
2
+ require 'rubygems/package_task'
3
+
4
+ spec = eval(File.read('bunchr.gemspec'))
5
+
6
+ Gem::PackageTask.new(spec) do |pkg|
7
+ end
8
+
9
+ task :default => :gem
@@ -0,0 +1,7 @@
1
+ x rakefile
2
+ readme
3
+ vagrant examples (or link to sensu?)
4
+ other examples (or link to sensu-bunchr?)
5
+ refactor sensu project to use the gem
6
+ publish to github
7
+ twitter to those who were interested
@@ -0,0 +1,34 @@
1
+
2
+ # -*- encoding: utf-8 -*-
3
+ $:.push('lib')
4
+ require "bunchr/version"
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = "bunchr"
8
+ s.version = Bunchr::VERSION.dup
9
+ s.date = "2012-04-17"
10
+ s.summary = "A DSL for bundling complex software projects into 'omnibus'-style packages."
11
+ s.email = "joeym@joeym.net"
12
+ s.homepage = "https://github.com/joemiller/bunchr"
13
+ s.authors = ['Joe Miller']
14
+
15
+ s.description = <<-EOF
16
+ A DSL for building complex software projects and packaging them (RPM, DEB, etc).
17
+ Originally developed to create "omnibus" style packages that include an entire
18
+ ruby stack along with one or more gems, but useful for general compilation and
19
+ packaging as well.
20
+ EOF
21
+
22
+ s.files = Dir['**/*']
23
+ s.require_paths = ["lib"]
24
+
25
+ ## Make sure you can build the gem on older versions of RubyGems too:
26
+ s.rubygems_version = "1.3.6"
27
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
28
+ s.specification_version = 3 if s.respond_to? :specification_version
29
+
30
+ s.add_dependency("rake", ">= 0.8.7")
31
+ s.add_dependency("ohai")
32
+ s.add_dependency("systemu")
33
+ s.add_dependency("fpm", "~> 0.4.6")
34
+ end
@@ -0,0 +1,201 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
+ <head>
5
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
+ <title>
7
+ Class: Bunchr::Logger
8
+
9
+ &mdash; Documentation by YARD 0.7.5
10
+
11
+ </title>
12
+
13
+ <link rel="stylesheet" href="../css/style.css" type="text/css" media="screen" charset="utf-8" />
14
+
15
+ <link rel="stylesheet" href="../css/common.css" type="text/css" media="screen" charset="utf-8" />
16
+
17
+ <script type="text/javascript" charset="utf-8">
18
+ relpath = '..';
19
+ if (relpath != '') relpath += '/';
20
+ </script>
21
+
22
+ <script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
23
+
24
+ <script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
25
+
26
+
27
+ </head>
28
+ <body>
29
+ <script type="text/javascript" charset="utf-8">
30
+ if (window.top.frames.main) document.body.className = 'frames';
31
+ </script>
32
+
33
+ <div id="header">
34
+ <div id="menu">
35
+
36
+ <a href="../_index.html">Index (L)</a> &raquo;
37
+ <span class='title'><span class='object_link'><a href="../Bunchr.html" title="Bunchr (module)">Bunchr</a></span></span>
38
+ &raquo;
39
+ <span class="title">Logger</span>
40
+
41
+
42
+ <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
43
+ </div>
44
+
45
+ <div id="search">
46
+
47
+ <a id="class_list_link" href="#">Class List</a>
48
+
49
+ <a id="method_list_link" href="#">Method List</a>
50
+
51
+ <a id="file_list_link" href="#">File List</a>
52
+
53
+ </div>
54
+ <div class="clear"></div>
55
+ </div>
56
+
57
+ <iframe id="search_frame"></iframe>
58
+
59
+ <div id="content"><h1>Class: Bunchr::Logger
60
+
61
+
62
+
63
+ </h1>
64
+
65
+ <dl class="box">
66
+
67
+ <dt class="r1">Inherits:</dt>
68
+ <dd class="r1">
69
+ <span class="inheritName">Object</span>
70
+
71
+ <ul class="fullTree">
72
+ <li>Object</li>
73
+
74
+ <li class="next">Bunchr::Logger</li>
75
+
76
+ </ul>
77
+ <a href="#" class="inheritanceTree">show all</a>
78
+
79
+ </dd>
80
+
81
+
82
+
83
+
84
+
85
+
86
+
87
+
88
+
89
+ <dt class="r2 last">Defined in:</dt>
90
+ <dd class="r2 last">lib/bunchr/logger.rb</dd>
91
+
92
+ </dl>
93
+ <div class="clear"></div>
94
+
95
+
96
+ <h2>Constant Summary</h2>
97
+
98
+ <dl class="constants">
99
+
100
+ <dt id="log-classvariable" class="">@@log =
101
+
102
+ </dt>
103
+ <dd><pre class="code"><span class='kw'>nil</span></pre></dd>
104
+
105
+ </dl>
106
+
107
+
108
+
109
+
110
+
111
+
112
+
113
+
114
+
115
+ <h2>
116
+ Class Method Summary
117
+ <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
118
+ </h2>
119
+
120
+ <ul class="summary">
121
+
122
+ <li class="public ">
123
+ <span class="summary_signature">
124
+
125
+ <a href="#logger-class_method" title="logger (class method)">+ (Object) <strong>logger</strong> </a>
126
+
127
+
128
+
129
+ </span>
130
+
131
+
132
+
133
+
134
+
135
+
136
+
137
+
138
+ <span class="summary_desc"><div class='inline'></div></span>
139
+
140
+ </li>
141
+
142
+
143
+ </ul>
144
+
145
+
146
+
147
+
148
+ <div id="class_method_details" class="method_details_list">
149
+ <h2>Class Method Details</h2>
150
+
151
+
152
+ <div class="method_details first">
153
+ <p class="signature first" id="logger-class_method">
154
+
155
+ + (<tt>Object</tt>) <strong>logger</strong>
156
+
157
+
158
+
159
+ </p><table class="source_code">
160
+ <tr>
161
+ <td>
162
+ <pre class="lines">
163
+
164
+
165
+ 8
166
+ 9
167
+ 10
168
+ 11
169
+ 12
170
+ 13
171
+ 14
172
+ 15</pre>
173
+ </td>
174
+ <td>
175
+ <pre class="code"><span class="info file"># File 'lib/bunchr/logger.rb', line 8</span>
176
+
177
+ <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_logger'>logger</span><span class='lparen'>(</span><span class='rparen'>)</span>
178
+ <span class='kw'>if</span> <span class='cvar'>@@log</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
179
+ <span class='cvar'>@@log</span> <span class='op'>||=</span> <span class='op'>::</span><span class='const'>Logger</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='const'>STDOUT</span><span class='rparen'>)</span>
180
+ <span class='cvar'>@@log</span><span class='period'>.</span><span class='id identifier rubyid_level'>level</span> <span class='op'>=</span> <span class='const'>ENV</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>BUNCHR_DEBUG</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span> <span class='op'>?</span> <span class='op'>::</span><span class='const'>Logger</span><span class='op'>::</span><span class='const'>DEBUG</span> <span class='op'>:</span> <span class='op'>::</span><span class='const'>Logger</span><span class='op'>::</span><span class='const'>INFO</span>
181
+ <span class='comment'># @@log.level = ::Logger::DEBUG
182
+ </span> <span class='kw'>end</span>
183
+ <span class='cvar'>@@log</span>
184
+ <span class='kw'>end</span></pre>
185
+ </td>
186
+ </tr>
187
+ </table>
188
+ </div>
189
+
190
+ </div>
191
+
192
+ </div>
193
+
194
+ <div id="footer">
195
+ Generated on Wed Apr 18 17:18:48 2012 by
196
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
197
+ 0.7.5 (ruby-1.9.2).
198
+ </div>
199
+
200
+ </body>
201
+ </html>
@@ -0,0 +1,201 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
+ <head>
5
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
+ <title>
7
+ Class: Bunchr::Ohai
8
+
9
+ &mdash; Documentation by YARD 0.7.5
10
+
11
+ </title>
12
+
13
+ <link rel="stylesheet" href="../css/style.css" type="text/css" media="screen" charset="utf-8" />
14
+
15
+ <link rel="stylesheet" href="../css/common.css" type="text/css" media="screen" charset="utf-8" />
16
+
17
+ <script type="text/javascript" charset="utf-8">
18
+ relpath = '..';
19
+ if (relpath != '') relpath += '/';
20
+ </script>
21
+
22
+ <script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
23
+
24
+ <script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
25
+
26
+
27
+ </head>
28
+ <body>
29
+ <script type="text/javascript" charset="utf-8">
30
+ if (window.top.frames.main) document.body.className = 'frames';
31
+ </script>
32
+
33
+ <div id="header">
34
+ <div id="menu">
35
+
36
+ <a href="../_index.html">Index (O)</a> &raquo;
37
+ <span class='title'><span class='object_link'><a href="../Bunchr.html" title="Bunchr (module)">Bunchr</a></span></span>
38
+ &raquo;
39
+ <span class="title">Ohai</span>
40
+
41
+
42
+ <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
43
+ </div>
44
+
45
+ <div id="search">
46
+
47
+ <a id="class_list_link" href="#">Class List</a>
48
+
49
+ <a id="method_list_link" href="#">Method List</a>
50
+
51
+ <a id="file_list_link" href="#">File List</a>
52
+
53
+ </div>
54
+ <div class="clear"></div>
55
+ </div>
56
+
57
+ <iframe id="search_frame"></iframe>
58
+
59
+ <div id="content"><h1>Class: Bunchr::Ohai
60
+
61
+
62
+
63
+ </h1>
64
+
65
+ <dl class="box">
66
+
67
+ <dt class="r1">Inherits:</dt>
68
+ <dd class="r1">
69
+ <span class="inheritName">Object</span>
70
+
71
+ <ul class="fullTree">
72
+ <li>Object</li>
73
+
74
+ <li class="next">Bunchr::Ohai</li>
75
+
76
+ </ul>
77
+ <a href="#" class="inheritanceTree">show all</a>
78
+
79
+ </dd>
80
+
81
+
82
+
83
+
84
+
85
+
86
+
87
+
88
+
89
+ <dt class="r2 last">Defined in:</dt>
90
+ <dd class="r2 last">lib/bunchr/ohai.rb</dd>
91
+
92
+ </dl>
93
+ <div class="clear"></div>
94
+
95
+
96
+ <h2>Constant Summary</h2>
97
+
98
+ <dl class="constants">
99
+
100
+ <dt id="ohai-classvariable" class="">@@ohai =
101
+
102
+ </dt>
103
+ <dd><pre class="code"><span class='kw'>nil</span></pre></dd>
104
+
105
+ </dl>
106
+
107
+
108
+
109
+
110
+
111
+
112
+
113
+
114
+
115
+ <h2>
116
+ Class Method Summary
117
+ <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
118
+ </h2>
119
+
120
+ <ul class="summary">
121
+
122
+ <li class="public ">
123
+ <span class="summary_signature">
124
+
125
+ <a href="#ohai-class_method" title="ohai (class method)">+ (Object) <strong>ohai</strong> </a>
126
+
127
+
128
+
129
+ </span>
130
+
131
+
132
+
133
+
134
+
135
+
136
+
137
+
138
+ <span class="summary_desc"><div class='inline'></div></span>
139
+
140
+ </li>
141
+
142
+
143
+ </ul>
144
+
145
+
146
+
147
+
148
+ <div id="class_method_details" class="method_details_list">
149
+ <h2>Class Method Details</h2>
150
+
151
+
152
+ <div class="method_details first">
153
+ <p class="signature first" id="ohai-class_method">
154
+
155
+ + (<tt>Object</tt>) <strong>ohai</strong>
156
+
157
+
158
+
159
+ </p><table class="source_code">
160
+ <tr>
161
+ <td>
162
+ <pre class="lines">
163
+
164
+
165
+ 8
166
+ 9
167
+ 10
168
+ 11
169
+ 12
170
+ 13
171
+ 14
172
+ 15</pre>
173
+ </td>
174
+ <td>
175
+ <pre class="code"><span class="info file"># File 'lib/bunchr/ohai.rb', line 8</span>
176
+
177
+ <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_ohai'>ohai</span>
178
+ <span class='kw'>if</span> <span class='cvar'>@@ohai</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
179
+ <span class='cvar'>@@ohai</span> <span class='op'>||=</span> <span class='op'>::</span><span class='const'>Ohai</span><span class='op'>::</span><span class='const'>System</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span>
180
+ <span class='cvar'>@@ohai</span><span class='period'>.</span><span class='id identifier rubyid_require_plugin'>require_plugin</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>os</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span>
181
+ <span class='cvar'>@@ohai</span><span class='period'>.</span><span class='id identifier rubyid_require_plugin'>require_plugin</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>platform</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span>
182
+ <span class='kw'>end</span>
183
+ <span class='cvar'>@@ohai</span>
184
+ <span class='kw'>end</span></pre>
185
+ </td>
186
+ </tr>
187
+ </table>
188
+ </div>
189
+
190
+ </div>
191
+
192
+ </div>
193
+
194
+ <div id="footer">
195
+ Generated on Wed Apr 18 17:18:48 2012 by
196
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
197
+ 0.7.5 (ruby-1.9.2).
198
+ </div>
199
+
200
+ </body>
201
+ </html>