new 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (88) hide show
  1. checksums.yaml +4 -4
  2. data/.gitmodules +3 -0
  3. data/.new +1 -1
  4. data/Gemfile.lock +25 -20
  5. data/Guardfile +6 -4
  6. data/README.md +9 -2
  7. data/doc/.git +1 -0
  8. data/doc/Gemfile.html +125 -0
  9. data/doc/Gemfile_lock.html +198 -0
  10. data/doc/Guardfile.html +134 -0
  11. data/doc/InterpolateSpec.html +116 -0
  12. data/doc/LICENSE_txt.html +132 -0
  13. data/doc/New/Cli.html +290 -0
  14. data/doc/New/Dsl.html +185 -0
  15. data/doc/New/Interpolate.html +238 -0
  16. data/doc/New/Project.html +171 -0
  17. data/doc/New/Task/CustomBarTask.html +154 -0
  18. data/doc/New/Task/FooTask.html +168 -0
  19. data/doc/New/Task/Gem.html +197 -0
  20. data/doc/New/Task/TaskSpec.html +168 -0
  21. data/doc/New/Task.html +380 -0
  22. data/doc/New/Template.html +234 -0
  23. data/doc/New/Version.html +277 -0
  24. data/doc/New.html +377 -0
  25. data/doc/Object.html +200 -0
  26. data/doc/README_md.html +292 -0
  27. data/doc/VersionSpec.html +116 -0
  28. data/doc/created.rid +47 -0
  29. data/doc/fonts/Lato-Light.ttf +0 -0
  30. data/doc/fonts/Lato-LightItalic.ttf +0 -0
  31. data/doc/fonts/Lato-Regular.ttf +0 -0
  32. data/doc/fonts/Lato-RegularItalic.ttf +0 -0
  33. data/doc/fonts/SourceCodePro-Bold.ttf +0 -0
  34. data/doc/fonts/SourceCodePro-Regular.ttf +0 -0
  35. data/doc/fonts.css +167 -0
  36. data/doc/images/add.png +0 -0
  37. data/doc/images/arrow_up.png +0 -0
  38. data/doc/images/brick.png +0 -0
  39. data/doc/images/brick_link.png +0 -0
  40. data/doc/images/bug.png +0 -0
  41. data/doc/images/bullet_black.png +0 -0
  42. data/doc/images/bullet_toggle_minus.png +0 -0
  43. data/doc/images/bullet_toggle_plus.png +0 -0
  44. data/doc/images/date.png +0 -0
  45. data/doc/images/delete.png +0 -0
  46. data/doc/images/find.png +0 -0
  47. data/doc/images/loadingAnimation.gif +0 -0
  48. data/doc/images/macFFBgHack.png +0 -0
  49. data/doc/images/package.png +0 -0
  50. data/doc/images/page_green.png +0 -0
  51. data/doc/images/page_white_text.png +0 -0
  52. data/doc/images/page_white_width.png +0 -0
  53. data/doc/images/plugin.png +0 -0
  54. data/doc/images/ruby.png +0 -0
  55. data/doc/images/tag_blue.png +0 -0
  56. data/doc/images/tag_green.png +0 -0
  57. data/doc/images/transparent.png +0 -0
  58. data/doc/images/wrench.png +0 -0
  59. data/doc/images/wrench_orange.png +0 -0
  60. data/doc/images/zoom.png +0 -0
  61. data/doc/index.html +142 -0
  62. data/doc/js/darkfish.js +140 -0
  63. data/doc/js/jquery.js +18 -0
  64. data/doc/js/navigation.js +142 -0
  65. data/doc/js/search.js +109 -0
  66. data/doc/js/search_index.js +1 -0
  67. data/doc/js/searcher.js +228 -0
  68. data/doc/rdoc.css +580 -0
  69. data/doc/spec/fixtures/custom/templates/custom_bar_template/custom_bar_txt.html +110 -0
  70. data/doc/table_of_contents.html +324 -0
  71. data/doc/tasks/gem/README_md.html +150 -0
  72. data/doc/templates/js/Gemfile.html +147 -0
  73. data/doc/templates/js/Guardfile.html +117 -0
  74. data/doc/templates/js/lib/README_md.html +114 -0
  75. data/doc/templates/js/spec/spec_helper_js_coffee.html +110 -0
  76. data/doc/templates/js/spec/vendor/chai_js.html +3864 -0
  77. data/doc/templates/js/spec/vendor/sinon-chai_js.html +222 -0
  78. data/doc/templates/js/spec/vendor/sinon_js.html +4358 -0
  79. data/doc/templates/js/src/README_md.html +125 -0
  80. data/lib/new/task.rb +2 -4
  81. data/lib/new/template.rb +1 -1
  82. data/lib/new/version.rb +27 -19
  83. data/spec/fixtures/tasks/foo_task/Gemfile +5 -0
  84. data/spec/lib/new/version_spec.rb +10 -15
  85. data/spec/spec_helper.rb +22 -1
  86. data/tasks/gem/gem.rb +44 -8
  87. data/tasks/gem/gem_spec.rb +139 -0
  88. metadata +233 -3
data/doc/New/Dsl.html ADDED
@@ -0,0 +1,185 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta charset="UTF-8">
6
+
7
+ <title>module New::Dsl - RDoc Documentation</title>
8
+
9
+ <link href="../fonts.css" rel="stylesheet">
10
+ <link href="../rdoc.css" rel="stylesheet">
11
+
12
+ <script type="text/javascript">
13
+ var rdoc_rel_prefix = "../";
14
+ </script>
15
+
16
+ <script src="../js/jquery.js"></script>
17
+ <script src="../js/navigation.js"></script>
18
+ <script src="../js/search_index.js"></script>
19
+ <script src="../js/search.js"></script>
20
+ <script src="../js/searcher.js"></script>
21
+ <script src="../js/darkfish.js"></script>
22
+
23
+
24
+ <body id="top" role="document" class="module">
25
+ <nav role="navigation">
26
+ <div id="project-navigation">
27
+ <div id="home-section" role="region" title="Quick navigation" class="nav-section">
28
+ <h2>
29
+ <a href="../index.html" rel="home">Home</a>
30
+ </h2>
31
+
32
+ <div id="table-of-contents-navigation">
33
+ <a href="../table_of_contents.html#pages">Pages</a>
34
+ <a href="../table_of_contents.html#classes">Classes</a>
35
+ <a href="../table_of_contents.html#methods">Methods</a>
36
+ </div>
37
+ </div>
38
+
39
+ <div id="search-section" role="search" class="project-section initially-hidden">
40
+ <form action="#" method="get" accept-charset="utf-8">
41
+ <div id="search-field-wrapper">
42
+ <input id="search-field" role="combobox" aria-label="Search"
43
+ aria-autocomplete="list" aria-controls="search-results"
44
+ type="text" name="search" placeholder="Search" spellcheck="false"
45
+ title="Type to search, Up and Down to navigate, Enter to load">
46
+ </div>
47
+
48
+ <ul id="search-results" aria-label="Search Results"
49
+ aria-busy="false" aria-expanded="false"
50
+ aria-atomic="false" class="initially-hidden"></ul>
51
+ </form>
52
+ </div>
53
+
54
+ </div>
55
+
56
+
57
+
58
+ <div id="class-metadata">
59
+
60
+
61
+
62
+
63
+ <!-- Method Quickref -->
64
+ <div id="method-list-section" class="nav-section">
65
+ <h3>Methods</h3>
66
+
67
+ <ul class="link-list" role="directory">
68
+
69
+ <li ><a href="#method-i-say">#say</a>
70
+
71
+ </ul>
72
+ </div>
73
+
74
+ </div>
75
+ </nav>
76
+
77
+ <main role="main" aria-labelledby="module-New::Dsl">
78
+ <h1 id="module-New::Dsl" class="module">
79
+ module New::Dsl
80
+ </h1>
81
+
82
+ <section class="description">
83
+
84
+ </section>
85
+
86
+
87
+
88
+
89
+ <section id="5Buntitled-5D" class="documentation-section">
90
+
91
+
92
+
93
+
94
+
95
+
96
+
97
+
98
+
99
+ <section id="public-instance-5Buntitled-5D-method-details" class="method-section">
100
+ <header>
101
+ <h3>Public Instance Methods</h3>
102
+ </header>
103
+
104
+
105
+ <div id="method-i-say" class="method-detail ">
106
+
107
+ <div class="method-heading">
108
+ <span class="method-name">say</span><span
109
+ class="method-args">(text = '', args = {})</span>
110
+
111
+ <span class="method-click-advice">click to toggle source</span>
112
+
113
+ </div>
114
+
115
+
116
+ <div class="method-description">
117
+
118
+ <p>Replacement for <code>puts</code> that accepts various stylistic arguments
119
+ <a
120
+ href="https://github.com/fazibear/colorize/blob/master/lib/colorize.rb">github.com/fazibear/colorize/blob/master/lib/colorize.rb</a></p>
121
+
122
+ <p>justify: =&gt; [center|ljust|rjust] The type of justification to use
123
+ padding: =&gt; [integer] The maximum string size to justify text in color:
124
+ =&gt; [integer] See link above for supported colors bgcolor: =&gt;
125
+ [integer] See link above for supported colors type: =&gt; [symbol] Preset
126
+ colors for [:fail, :success, :warn]</p>
127
+
128
+
129
+
130
+
131
+ <div class="method-source-code" id="say-source">
132
+ <pre><span class="ruby-comment"># File lib/new/dsl.rb, line 11</span>
133
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">say</span> <span class="ruby-identifier">text</span> = <span class="ruby-string">&#39;&#39;</span>, <span class="ruby-identifier">args</span> = {}
134
+ <span class="ruby-comment"># Justify options</span>
135
+ <span class="ruby-keyword">if</span> <span class="ruby-identifier">args</span>[<span class="ruby-value">:justify</span>] <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">args</span>[<span class="ruby-value">:padding</span>]
136
+ <span class="ruby-identifier">text</span> = <span class="ruby-identifier">text</span>.<span class="ruby-identifier">send</span> <span class="ruby-identifier">args</span>[<span class="ruby-value">:justify</span>], <span class="ruby-identifier">args</span>[<span class="ruby-value">:padding</span>]
137
+ <span class="ruby-keyword">end</span>
138
+
139
+ <span class="ruby-comment"># Color text</span>
140
+ <span class="ruby-identifier">text</span> = <span class="ruby-identifier">text</span>.<span class="ruby-identifier">colorize</span>(<span class="ruby-identifier">color</span><span class="ruby-operator">:</span> <span class="ruby-identifier">args</span>[<span class="ruby-value">:color</span>]) <span class="ruby-keyword">if</span> <span class="ruby-identifier">args</span>[<span class="ruby-value">:color</span>]
141
+
142
+ <span class="ruby-comment"># Color background</span>
143
+ <span class="ruby-identifier">text</span> = <span class="ruby-identifier">text</span>.<span class="ruby-identifier">colorize</span>(<span class="ruby-identifier">background</span><span class="ruby-operator">:</span> <span class="ruby-identifier">args</span>[<span class="ruby-value">:bgcolor</span>]) <span class="ruby-keyword">if</span> <span class="ruby-identifier">args</span>[<span class="ruby-value">:bgcolor</span>]
144
+
145
+ <span class="ruby-comment"># Type options</span>
146
+ <span class="ruby-comment"># process last due to the addition of special color codes</span>
147
+ <span class="ruby-identifier">text</span> = <span class="ruby-keyword">case</span> <span class="ruby-identifier">args</span>[<span class="ruby-value">:type</span>]
148
+ <span class="ruby-keyword">when</span> <span class="ruby-value">:fail</span>
149
+ <span class="ruby-identifier">text</span>.<span class="ruby-identifier">red</span>
150
+ <span class="ruby-keyword">when</span> <span class="ruby-value">:success</span>
151
+ <span class="ruby-identifier">text</span>.<span class="ruby-identifier">green</span>
152
+ <span class="ruby-keyword">when</span> <span class="ruby-value">:warn</span>
153
+ <span class="ruby-identifier">text</span>.<span class="ruby-identifier">yellow</span>
154
+ <span class="ruby-keyword">else</span>
155
+ <span class="ruby-identifier">text</span>
156
+ <span class="ruby-keyword">end</span>
157
+
158
+ <span class="ruby-keyword">if</span> <span class="ruby-identifier">args</span>[<span class="ruby-value">:indent</span>]
159
+ <span class="ruby-identifier">text</span> = (<span class="ruby-string">&#39; &#39;</span> <span class="ruby-operator">*</span> <span class="ruby-identifier">args</span>[<span class="ruby-value">:indent</span>]) <span class="ruby-operator">+</span> <span class="ruby-identifier">text</span>
160
+ <span class="ruby-keyword">end</span>
161
+
162
+ <span class="ruby-identifier">puts</span> <span class="ruby-identifier">text</span>
163
+ <span class="ruby-keyword">end</span></pre>
164
+ </div>
165
+
166
+ </div>
167
+
168
+
169
+
170
+
171
+ </div>
172
+
173
+
174
+ </section>
175
+
176
+ </section>
177
+ </main>
178
+
179
+
180
+ <footer id="validator-badges" role="contentinfo">
181
+ <p><a href="http://validator.w3.org/check/referer">Validate</a>
182
+ <p>Generated by <a href="http://rdoc.rubyforge.org">RDoc</a> 4.1.0.
183
+ <p>Based on <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
184
+ </footer>
185
+
@@ -0,0 +1,238 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta charset="UTF-8">
6
+
7
+ <title>module New::Interpolate - RDoc Documentation</title>
8
+
9
+ <link href="../fonts.css" rel="stylesheet">
10
+ <link href="../rdoc.css" rel="stylesheet">
11
+
12
+ <script type="text/javascript">
13
+ var rdoc_rel_prefix = "../";
14
+ </script>
15
+
16
+ <script src="../js/jquery.js"></script>
17
+ <script src="../js/navigation.js"></script>
18
+ <script src="../js/search_index.js"></script>
19
+ <script src="../js/search.js"></script>
20
+ <script src="../js/searcher.js"></script>
21
+ <script src="../js/darkfish.js"></script>
22
+
23
+
24
+ <body id="top" role="document" class="module">
25
+ <nav role="navigation">
26
+ <div id="project-navigation">
27
+ <div id="home-section" role="region" title="Quick navigation" class="nav-section">
28
+ <h2>
29
+ <a href="../index.html" rel="home">Home</a>
30
+ </h2>
31
+
32
+ <div id="table-of-contents-navigation">
33
+ <a href="../table_of_contents.html#pages">Pages</a>
34
+ <a href="../table_of_contents.html#classes">Classes</a>
35
+ <a href="../table_of_contents.html#methods">Methods</a>
36
+ </div>
37
+ </div>
38
+
39
+ <div id="search-section" role="search" class="project-section initially-hidden">
40
+ <form action="#" method="get" accept-charset="utf-8">
41
+ <div id="search-field-wrapper">
42
+ <input id="search-field" role="combobox" aria-label="Search"
43
+ aria-autocomplete="list" aria-controls="search-results"
44
+ type="text" name="search" placeholder="Search" spellcheck="false"
45
+ title="Type to search, Up and Down to navigate, Enter to load">
46
+ </div>
47
+
48
+ <ul id="search-results" aria-label="Search Results"
49
+ aria-busy="false" aria-expanded="false"
50
+ aria-atomic="false" class="initially-hidden"></ul>
51
+ </form>
52
+ </div>
53
+
54
+ </div>
55
+
56
+
57
+
58
+ <div id="class-metadata">
59
+
60
+
61
+
62
+
63
+ <!-- Method Quickref -->
64
+ <div id="method-list-section" class="nav-section">
65
+ <h3>Methods</h3>
66
+
67
+ <ul class="link-list" role="directory">
68
+
69
+ <li ><a href="#method-i-dir">#dir</a>
70
+
71
+ <li ><a href="#method-i-dot_options">#dot_options</a>
72
+
73
+ <li ><a href="#method-i-interpolate">#interpolate</a>
74
+
75
+ </ul>
76
+ </div>
77
+
78
+ </div>
79
+ </nav>
80
+
81
+ <main role="main" aria-labelledby="module-New::Interpolate">
82
+ <h1 id="module-New::Interpolate" class="module">
83
+ module New::Interpolate
84
+ </h1>
85
+
86
+ <section class="description">
87
+
88
+ </section>
89
+
90
+
91
+
92
+
93
+ <section id="5Buntitled-5D" class="documentation-section">
94
+
95
+
96
+
97
+
98
+
99
+ <section class="constants-list">
100
+ <header>
101
+ <h3>Constants</h3>
102
+ </header>
103
+ <dl>
104
+
105
+ <dt id="FILENAME_RENAME_MATCH">FILENAME_RENAME_MATCH
106
+
107
+ <dd><p>regex to match capital underscored template options names ie [PROJECT_NAME]</p>
108
+
109
+
110
+ </dl>
111
+ </section>
112
+
113
+
114
+
115
+
116
+
117
+ <section id="public-instance-5Buntitled-5D-method-details" class="method-section">
118
+ <header>
119
+ <h3>Public Instance Methods</h3>
120
+ </header>
121
+
122
+
123
+ <div id="method-i-dir" class="method-detail ">
124
+
125
+ <div class="method-heading">
126
+ <span class="method-name">dir</span><span
127
+ class="method-args">()</span>
128
+
129
+ <span class="method-click-advice">click to toggle source</span>
130
+
131
+ </div>
132
+
133
+
134
+ <div class="method-description">
135
+
136
+
137
+
138
+
139
+
140
+
141
+ <div class="method-source-code" id="dir-source">
142
+ <pre><span class="ruby-comment"># File lib/new/interpolate.rb, line 19</span>
143
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">dir</span>
144
+ <span class="ruby-constant">File</span>.<span class="ruby-identifier">file?</span>(<span class="ruby-ivar">@src_path</span>) <span class="ruby-operator">?</span> <span class="ruby-ivar">@dest_path</span> <span class="ruby-operator">:</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-ivar">@dest_path</span>, <span class="ruby-constant">File</span>.<span class="ruby-identifier">basename</span>(<span class="ruby-ivar">@src_path</span>))
145
+ <span class="ruby-keyword">end</span></pre>
146
+ </div>
147
+
148
+ </div>
149
+
150
+
151
+
152
+
153
+ </div>
154
+
155
+
156
+ <div id="method-i-dot_options" class="method-detail ">
157
+
158
+ <div class="method-heading">
159
+ <span class="method-name">dot_options</span><span
160
+ class="method-args">()</span>
161
+
162
+ <span class="method-click-advice">click to toggle source</span>
163
+
164
+ </div>
165
+
166
+
167
+ <div class="method-description">
168
+
169
+ <p>Convert options to OpenStruct so we can use dot notation in the templates</p>
170
+
171
+
172
+
173
+
174
+ <div class="method-source-code" id="dot_options-source">
175
+ <pre><span class="ruby-comment"># File lib/new/interpolate.rb, line 25</span>
176
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">dot_options</span>
177
+ <span class="ruby-ivar">@dot_options</span> <span class="ruby-operator">||=</span> <span class="ruby-constant">RecursiveOpenStruct</span>.<span class="ruby-identifier">new</span>(<span class="ruby-ivar">@options</span>)
178
+ <span class="ruby-keyword">end</span></pre>
179
+ </div>
180
+
181
+ </div>
182
+
183
+
184
+
185
+
186
+ </div>
187
+
188
+
189
+ <div id="method-i-interpolate" class="method-detail ">
190
+
191
+ <div class="method-heading">
192
+ <span class="method-name">interpolate</span><span
193
+ class="method-args">(src_path, options)</span>
194
+
195
+ <span class="method-click-advice">click to toggle source</span>
196
+
197
+ </div>
198
+
199
+
200
+ <div class="method-description">
201
+
202
+ <p>Convienance method for processing everything</p>
203
+
204
+
205
+
206
+
207
+ <div class="method-source-code" id="interpolate-source">
208
+ <pre><span class="ruby-comment"># File lib/new/interpolate.rb, line 10</span>
209
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">interpolate</span> <span class="ruby-identifier">src_path</span>, <span class="ruby-identifier">options</span>
210
+ <span class="ruby-ivar">@src_path</span> = <span class="ruby-identifier">src_path</span>
211
+ <span class="ruby-ivar">@options</span> = <span class="ruby-identifier">options</span>
212
+
213
+ <span class="ruby-identifier">copy_to_tmp</span>
214
+ <span class="ruby-identifier">process_paths</span>
215
+ <span class="ruby-identifier">process_files</span>
216
+ <span class="ruby-keyword">end</span></pre>
217
+ </div>
218
+
219
+ </div>
220
+
221
+
222
+
223
+
224
+ </div>
225
+
226
+
227
+ </section>
228
+
229
+ </section>
230
+ </main>
231
+
232
+
233
+ <footer id="validator-badges" role="contentinfo">
234
+ <p><a href="http://validator.w3.org/check/referer">Validate</a>
235
+ <p>Generated by <a href="http://rdoc.rubyforge.org">RDoc</a> 4.1.0.
236
+ <p>Based on <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
237
+ </footer>
238
+
@@ -0,0 +1,171 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta charset="UTF-8">
6
+
7
+ <title>class New::Project - RDoc Documentation</title>
8
+
9
+ <link href="../fonts.css" rel="stylesheet">
10
+ <link href="../rdoc.css" rel="stylesheet">
11
+
12
+ <script type="text/javascript">
13
+ var rdoc_rel_prefix = "../";
14
+ </script>
15
+
16
+ <script src="../js/jquery.js"></script>
17
+ <script src="../js/navigation.js"></script>
18
+ <script src="../js/search_index.js"></script>
19
+ <script src="../js/search.js"></script>
20
+ <script src="../js/searcher.js"></script>
21
+ <script src="../js/darkfish.js"></script>
22
+
23
+
24
+ <body id="top" role="document" class="class">
25
+ <nav role="navigation">
26
+ <div id="project-navigation">
27
+ <div id="home-section" role="region" title="Quick navigation" class="nav-section">
28
+ <h2>
29
+ <a href="../index.html" rel="home">Home</a>
30
+ </h2>
31
+
32
+ <div id="table-of-contents-navigation">
33
+ <a href="../table_of_contents.html#pages">Pages</a>
34
+ <a href="../table_of_contents.html#classes">Classes</a>
35
+ <a href="../table_of_contents.html#methods">Methods</a>
36
+ </div>
37
+ </div>
38
+
39
+ <div id="search-section" role="search" class="project-section initially-hidden">
40
+ <form action="#" method="get" accept-charset="utf-8">
41
+ <div id="search-field-wrapper">
42
+ <input id="search-field" role="combobox" aria-label="Search"
43
+ aria-autocomplete="list" aria-controls="search-results"
44
+ type="text" name="search" placeholder="Search" spellcheck="false"
45
+ title="Type to search, Up and Down to navigate, Enter to load">
46
+ </div>
47
+
48
+ <ul id="search-results" aria-label="Search Results"
49
+ aria-busy="false" aria-expanded="false"
50
+ aria-atomic="false" class="initially-hidden"></ul>
51
+ </form>
52
+ </div>
53
+
54
+ </div>
55
+
56
+
57
+
58
+ <div id="class-metadata">
59
+
60
+ <div id="parent-class-section" class="nav-section">
61
+ <h3>Parent</h3>
62
+
63
+
64
+ <p class="link"><a href="../Object.html">Object</a>
65
+
66
+ </div>
67
+
68
+ <div id="includes-section" class="nav-section">
69
+ <h3>Included Modules</h3>
70
+
71
+ <ul class="link-list">
72
+
73
+
74
+ <li><a class="include" href="Version.html">New::Version</a>
75
+
76
+
77
+ </ul>
78
+ </div>
79
+
80
+
81
+ <!-- Method Quickref -->
82
+ <div id="method-list-section" class="nav-section">
83
+ <h3>Methods</h3>
84
+
85
+ <ul class="link-list" role="directory">
86
+
87
+ <li ><a href="#method-c-new">::new</a>
88
+
89
+ </ul>
90
+ </div>
91
+
92
+ </div>
93
+ </nav>
94
+
95
+ <main role="main" aria-labelledby="class-New::Project">
96
+ <h1 id="class-New::Project" class="class">
97
+ class New::Project
98
+ </h1>
99
+
100
+ <section class="description">
101
+
102
+ </section>
103
+
104
+
105
+
106
+
107
+ <section id="5Buntitled-5D" class="documentation-section">
108
+
109
+
110
+
111
+
112
+
113
+
114
+
115
+
116
+
117
+ <section id="public-class-5Buntitled-5D-method-details" class="method-section">
118
+ <header>
119
+ <h3>Public Class Methods</h3>
120
+ </header>
121
+
122
+
123
+ <div id="method-c-new" class="method-detail ">
124
+
125
+ <div class="method-heading">
126
+ <span class="method-name">new</span><span
127
+ class="method-args">(template, name)</span>
128
+
129
+ <span class="method-click-advice">click to toggle source</span>
130
+
131
+ </div>
132
+
133
+
134
+ <div class="method-description">
135
+
136
+ <p>Create all variables and run new project creation methods</p>
137
+
138
+
139
+
140
+
141
+ <div class="method-source-code" id="new-source">
142
+ <pre><span class="ruby-comment"># File lib/new/project.rb, line 6</span>
143
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span> <span class="ruby-identifier">template</span>, <span class="ruby-identifier">name</span>
144
+ <span class="ruby-ivar">@project_dir</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-constant">Dir</span>.<span class="ruby-identifier">pwd</span>, <span class="ruby-identifier">name</span>.<span class="ruby-identifier">to_s</span>) <span class="ruby-comment"># the newly created project directory</span>
145
+ <span class="ruby-ivar">@template</span> = <span class="ruby-constant">New</span><span class="ruby-operator">::</span><span class="ruby-constant">Template</span>.<span class="ruby-identifier">new</span> <span class="ruby-identifier">template</span>, <span class="ruby-identifier">name</span>
146
+
147
+ <span class="ruby-identifier">copy_template</span>
148
+ <span class="ruby-identifier">create_config_file</span>
149
+ <span class="ruby-keyword">end</span></pre>
150
+ </div>
151
+
152
+ </div>
153
+
154
+
155
+
156
+
157
+ </div>
158
+
159
+
160
+ </section>
161
+
162
+ </section>
163
+ </main>
164
+
165
+
166
+ <footer id="validator-badges" role="contentinfo">
167
+ <p><a href="http://validator.w3.org/check/referer">Validate</a>
168
+ <p>Generated by <a href="http://rdoc.rubyforge.org">RDoc</a> 4.1.0.
169
+ <p>Based on <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
170
+ </footer>
171
+