reap 6.0.2 → 9.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (174) hide show
  1. data/CHANGES +6 -0
  2. data/COPYING +666 -395
  3. data/MANIFEST +139 -0
  4. data/NOTES +12 -0
  5. data/README +19 -163
  6. data/bin/reap-announce +7 -0
  7. data/bin/reap-check-load +8 -0
  8. data/bin/reap-check-syntax +7 -0
  9. data/bin/reap-clean +7 -0
  10. data/bin/reap-clobber +7 -0
  11. data/bin/reap-doc +7 -0
  12. data/bin/reap-doc-rdoc +7 -0
  13. data/bin/reap-doc-ri +7 -0
  14. data/bin/reap-init +69 -0
  15. data/bin/reap-inspect +7 -0
  16. data/bin/reap-install +8 -0
  17. data/bin/reap-install-gem +8 -0
  18. data/bin/reap-log +7 -0
  19. data/bin/reap-log-changes +8 -0
  20. data/bin/reap-log-notes +8 -0
  21. data/bin/reap-make +7 -0
  22. data/bin/reap-make-clean +7 -0
  23. data/bin/reap-make-distclean +7 -0
  24. data/bin/reap-make-extconf +7 -0
  25. data/bin/reap-make-static +8 -0
  26. data/bin/reap-package +8 -0
  27. data/bin/reap-package-gem +7 -0
  28. data/bin/reap-package-tgz +7 -0
  29. data/bin/reap-package-zip +7 -0
  30. data/bin/reap-prepare +7 -0
  31. data/bin/reap-publish +7 -0
  32. data/bin/reap-release +7 -0
  33. data/bin/reap-scaffold +8 -0
  34. data/bin/reap-scm-branch +7 -0
  35. data/bin/reap-scm-tag +7 -0
  36. data/bin/reap-spec +7 -0
  37. data/bin/reap-spec-doc +8 -0
  38. data/bin/reap-stamp +7 -0
  39. data/bin/reap-stats +7 -0
  40. data/bin/reap-test +7 -0
  41. data/bin/reap-test-cross +7 -0
  42. data/bin/reap-test-load +9 -0
  43. data/bin/reap-test-solo +7 -0
  44. data/bin/reap-uninstall +7 -0
  45. data/bin/reap-uninstall-gem +7 -0
  46. data/data/reap/base/CHANGES +19 -0
  47. data/data/reap/base/COPYING +674 -0
  48. data/data/reap/base/NOTES +12 -0
  49. data/data/reap/base/README +8 -0
  50. data/data/reap/build/rake/Rakefile +130 -0
  51. data/{forge/reference/installers → data/reap/build/rake}/setup.rb +155 -97
  52. data/data/reap/build/rake-lite/install.rb +79 -0
  53. data/data/reap/build/tasks/task/rdoc +211 -0
  54. data/data/reap/{setup.rb → build/tasks/task/setup} +248 -200
  55. data/data/reap/build/tasks/task/test +38 -0
  56. data/data/reap/init/meta/project.yaml +21 -0
  57. data/demo/README +15 -0
  58. data/demo/lib/foo/foo.rb +7 -0
  59. data/demo/meta/VERSION +1 -0
  60. data/demo/meta/project.yaml +21 -0
  61. data/lib/reap/application.rb +80 -0
  62. data/lib/reap/default.yaml +77 -0
  63. data/lib/reap/extensions/array.rb +50 -0
  64. data/lib/reap/extensions/hash.rb +63 -0
  65. data/lib/reap/extensions/string.rb +31 -0
  66. data/lib/reap/extensions.rb +6 -0
  67. data/lib/reap/iobject.rb +264 -0
  68. data/lib/reap/manager/announce.rb +193 -0
  69. data/lib/reap/manager/check.rb +109 -0
  70. data/lib/reap/manager/clean.rb +58 -0
  71. data/lib/reap/manager/gem.rb +200 -0
  72. data/lib/reap/manager/html.rb +69 -0
  73. data/lib/reap/manager/log.rb +214 -0
  74. data/lib/reap/manager/make.rb +109 -0
  75. data/lib/reap/manager/pack.rb +232 -0
  76. data/lib/reap/manager/publish.rb +72 -0
  77. data/lib/reap/manager/rdoc.rb +194 -0
  78. data/lib/reap/manager/release.rb +78 -0
  79. data/lib/reap/manager/rubyforge.rb +44 -0
  80. data/lib/reap/manager/scaffold.rb +138 -0
  81. data/lib/reap/manager/scm.rb +66 -0
  82. data/lib/reap/manager/site.rb +27 -0
  83. data/lib/reap/manager/spec.rb +94 -0
  84. data/lib/reap/manager/stats.rb +145 -0
  85. data/lib/reap/manager/svn.rb +76 -0
  86. data/lib/reap/manager/test.rb +389 -0
  87. data/lib/reap/manager.rb +74 -0
  88. data/lib/reap/metadata.rb +603 -0
  89. data/lib/reap/project.rb +165 -0
  90. data/lib/reap/settings.rb +67 -0
  91. data/lib/reap/systems/rubyforge.rb +737 -0
  92. data/lib/reap/systems/subversion.rb +333 -0
  93. data/lib/reap/utilities/fileutils.rb +304 -0
  94. data/lib/reap/utilities/netutils.rb +221 -0
  95. data/lib/reap/utilities/setuputils.rb +124 -0
  96. data/lib/reap/utilities/shellutils.rb +175 -0
  97. data/log/Changelog.txt +107 -0
  98. data/log/FIXME.txt +25 -0
  99. data/log/TODO.txt +72 -0
  100. data/meta/VERSION +1 -0
  101. data/meta/description +4 -0
  102. data/meta/project.yaml +20 -0
  103. data/task/man +14 -0
  104. data/task/rdoc +20 -0
  105. data/{data/reap/scaffold/standard/setup.rb → task/setup} +248 -200
  106. metadata +225 -153
  107. data/ProjectInfo +0 -105
  108. data/bin/reap +0 -5
  109. data/bin/rubytest +0 -5
  110. data/data/reap/install.rb +0 -62
  111. data/data/reap/scaffold/standard/COPYING +0 -403
  112. data/data/reap/scaffold/standard/ChangeLog +0 -0
  113. data/data/reap/scaffold/standard/INSTALL +0 -14
  114. data/data/reap/scaffold/standard/ProjectInfo +0 -77
  115. data/data/reap/scaffold/standard/README +0 -3
  116. data/data/reap/scaffold/standard/Rakefile +0 -10
  117. data/data/reap/scaffold/standard/TODO +0 -0
  118. data/data/reap/scaffold/subversion/trunk/COPYING +0 -403
  119. data/data/reap/scaffold/subversion/trunk/ChangeLog +0 -0
  120. data/data/reap/scaffold/subversion/trunk/INSTALL +0 -14
  121. data/data/reap/scaffold/subversion/trunk/ProjectInfo +0 -76
  122. data/data/reap/scaffold/subversion/trunk/README +0 -3
  123. data/data/reap/scaffold/subversion/trunk/Rakefile +0 -10
  124. data/data/reap/scaffold/subversion/trunk/TODO +0 -0
  125. data/data/reap/scaffold/subversion/trunk/setup.rb +0 -1568
  126. data/forge/ProjectInfo +0 -38
  127. data/forge/ProjectInfo.rb +0 -76
  128. data/forge/TODO +0 -10
  129. data/forge/installer.rb +0 -250
  130. data/forge/reference/Rakefile +0 -124
  131. data/forge/reference/Rakefile.htm +0 -69
  132. data/forge/reference/aRakefile +0 -60
  133. data/forge/reference/compositepublisher.rb +0 -24
  134. data/forge/reference/ftptools.rb +0 -139
  135. data/forge/reference/installers/package.rb +0 -629
  136. data/forge/reference/license-each.rb +0 -85
  137. data/forge/reference/publisher.rb +0 -75
  138. data/forge/reference/rubyforge.rb +0 -247
  139. data/forge/reference/rubyforgepublisher.rb +0 -18
  140. data/forge/reference/sshpublisher.rb +0 -47
  141. data/forge/reference/suby-cvs.rb +0 -46
  142. data/forge/scaffold.rb +0 -126
  143. data/forge/unit_runner/README +0 -6
  144. data/forge/unit_runner/commentrunner.rb +0 -62
  145. data/forge/unit_runner/cunit.rb +0 -17
  146. data/forge/unit_runner/forkedrunner.rb +0 -91
  147. data/forge/unit_runner/sample.rb +0 -16
  148. data/lib/reap/bin/reap.rb +0 -230
  149. data/lib/reap/bin/rubytest.rb +0 -53
  150. data/lib/reap/class/announce.rb +0 -220
  151. data/lib/reap/class/doap.rb +0 -80
  152. data/lib/reap/class/extest.rb +0 -146
  153. data/lib/reap/class/filer.rb +0 -62
  154. data/lib/reap/class/manifest.rb +0 -68
  155. data/lib/reap/class/package.rb +0 -576
  156. data/lib/reap/class/publish.rb +0 -152
  157. data/lib/reap/class/rdoc.rb +0 -123
  158. data/lib/reap/class/test.rb +0 -264
  159. data/lib/reap/projectinfo.rb +0 -208
  160. data/lib/reap/rake.rb +0 -42
  161. data/lib/reap/reap.rb +0 -89
  162. data/lib/reap/tasks.rb +0 -756
  163. data/lib/reap/taskutils.rb +0 -122
  164. data/note/LATEST +0 -44
  165. data/note/doap.xml +0 -28
  166. data/note/history/Rakefile-0.1 +0 -308
  167. data/sample/ProjectInfo +0 -96
  168. data/sample/Rakefile +0 -9
  169. data/sample/Reapfile +0 -11
  170. data/sample/task/demo.rb +0 -15
  171. data/setup.rb +0 -1568
  172. data/web/ProjectInfo.html +0 -75
  173. data/web/images/grape.jpg +0 -0
  174. data/web/index.html +0 -312
data/MANIFEST ADDED
@@ -0,0 +1,139 @@
1
+ MANIFEST
2
+ test
3
+ test/fixtures
4
+ NOTES
5
+ CHANGES
6
+ README
7
+ meta
8
+ meta/project.yaml
9
+ meta/VERSION
10
+ meta/description
11
+ task
12
+ task/rdoc
13
+ task/setup
14
+ task/man
15
+ demo
16
+ demo/doc
17
+ demo/README
18
+ demo/pkg
19
+ demo/meta
20
+ demo/meta/project.yaml
21
+ demo/meta/VERSION
22
+ demo/lib
23
+ demo/lib/foo
24
+ demo/lib/foo/foo.rb
25
+ demo/log
26
+ lib
27
+ lib/reap
28
+ lib/reap/default.yaml
29
+ lib/reap/extensions
30
+ lib/reap/extensions/hash.rb
31
+ lib/reap/extensions/array.rb
32
+ lib/reap/extensions/string.rb
33
+ lib/reap/systems
34
+ lib/reap/systems/rubyforge.rb
35
+ lib/reap/systems/subversion.rb
36
+ lib/reap/application.rb
37
+ lib/reap/project.rb
38
+ lib/reap/iobject.rb
39
+ lib/reap/settings.rb
40
+ lib/reap/extensions.rb
41
+ lib/reap/metadata.rb
42
+ lib/reap/manager
43
+ lib/reap/manager/release.rb
44
+ lib/reap/manager/rdoc.rb
45
+ lib/reap/manager/make.rb
46
+ lib/reap/manager/log.rb
47
+ lib/reap/manager/test.rb
48
+ lib/reap/manager/site.rb
49
+ lib/reap/manager/rubyforge.rb
50
+ lib/reap/manager/html.rb
51
+ lib/reap/manager/stats.rb
52
+ lib/reap/manager/gem.rb
53
+ lib/reap/manager/scaffold.rb
54
+ lib/reap/manager/clean.rb
55
+ lib/reap/manager/publish.rb
56
+ lib/reap/manager/spec.rb
57
+ lib/reap/manager/pack.rb
58
+ lib/reap/manager/svn.rb
59
+ lib/reap/manager/scm.rb
60
+ lib/reap/manager/check.rb
61
+ lib/reap/manager/announce.rb
62
+ lib/reap/utilities
63
+ lib/reap/utilities/shellutils.rb
64
+ lib/reap/utilities/fileutils.rb
65
+ lib/reap/utilities/setuputils.rb
66
+ lib/reap/utilities/netutils.rb
67
+ lib/reap/manager.rb
68
+ data
69
+ data/reap
70
+ data/reap/init
71
+ data/reap/init/meta
72
+ data/reap/init/meta/project.yaml
73
+ data/reap/base
74
+ data/reap/base/doc
75
+ data/reap/base/test
76
+ data/reap/base/NOTES
77
+ data/reap/base/CHANGES
78
+ data/reap/base/README
79
+ data/reap/base/lib
80
+ data/reap/base/data
81
+ data/reap/base/bin
82
+ data/reap/base/COPYING
83
+ data/reap/build
84
+ data/reap/build/tasks
85
+ data/reap/build/tasks/task
86
+ data/reap/build/tasks/task/test
87
+ data/reap/build/tasks/task/rdoc
88
+ data/reap/build/tasks/task/setup
89
+ data/reap/build/rake
90
+ data/reap/build/rake/Rakefile
91
+ data/reap/build/rake/setup.rb
92
+ data/reap/build/rake-lite
93
+ data/reap/build/rake-lite/install.rb
94
+ log
95
+ log/Changelog.txt
96
+ log/TODO.txt
97
+ log/FIXME.txt
98
+ bin
99
+ bin/reap-package-tgz
100
+ bin/reap-package-gem
101
+ bin/reap-uninstall
102
+ bin/reap-log
103
+ bin/reap-test-cross
104
+ bin/reap-check-syntax
105
+ bin/reap-make-static
106
+ bin/reap-make-distclean
107
+ bin/reap-clobber
108
+ bin/reap-install-gem
109
+ bin/reap-log-changes
110
+ bin/reap-install
111
+ bin/reap-make-clean
112
+ bin/reap-stats
113
+ bin/reap-package
114
+ bin/reap-scm-tag
115
+ bin/reap-publish
116
+ bin/reap-spec
117
+ bin/reap-prepare
118
+ bin/reap-test-load
119
+ bin/reap-stamp
120
+ bin/reap-announce
121
+ bin/reap-test
122
+ bin/reap-clean
123
+ bin/reap-scaffold
124
+ bin/reap-log-notes
125
+ bin/reap-make-extconf
126
+ bin/reap-uninstall-gem
127
+ bin/reap-init
128
+ bin/reap-package-zip
129
+ bin/reap-inspect
130
+ bin/reap-release
131
+ bin/reap-make
132
+ bin/reap-doc-rdoc
133
+ bin/reap-spec-doc
134
+ bin/reap-test-solo
135
+ bin/reap-scm-branch
136
+ bin/reap-doc-ri
137
+ bin/reap-check-load
138
+ bin/reap-doc
139
+ COPYING
data/NOTES ADDED
@@ -0,0 +1,12 @@
1
+ The 9.x series of Reap is a beta version leading
2
+ upto a stable 10.0 release.
3
+
4
+ The system is starting to work well. There are still some
5
+ rough edges to iron and polish, but on the whole it's becoming
6
+ very usable.
7
+
8
+ The latest changes fix the pkg/ and log/ directories as
9
+ standard conventions, and can no longer be changed. In
10
+ this case the advantage of convention outway the uses
11
+ of configuration.
12
+
data/README CHANGED
@@ -1,186 +1,42 @@
1
- = Reap -- A Project Assistant for Ruby
2
-
3
- Reap is an easy to use project assistant for Ruby developers.
4
- Reap makes it easy to do the following tasks:
5
-
6
- * Build new convention-based project folders.
7
- * Generate RDoc API documentation.
8
- * Run unit tests (each in it's ruby process).
9
- * Extract comment embedded tests from source code.
10
- * Run comment embedded unit test directly from source.
11
- * Create source tar.gz, tar.bz2 and zip packages.
12
- * Create RubyGem and Debian packages, plus pacman PKGBUILDs.
13
- * Publish documents to Rubyforge or other web sites.
14
- * Make announcement to ruby-talk or other mailing list.
15
- * Prepare files for distribution (i.e. chmod, tag, etc.)
16
- * Release distributions on Rubyforge or other such host.
17
- * Generate XML-format DOAP project file.
18
-
19
- New features continue to be be developed. If you have special
20
- needs that Reap doesn't accomodate, new tasks are farily easy
21
- to create. And Reap's maintainers are always happy to engage
22
- suggestions.
1
+ = Reap
23
2
 
24
3
 
25
- == Installation
26
-
27
- === Requirements
4
+ == Introduction
28
5
 
29
- Reap requires Ruby Facets. If manually installing be sure to
30
- have the latest version of Facets installed too.
6
+ Reap is a Ruby-based project assistant application.
7
+ Reap provides a collection of tools to help developers
8
+ prepare and release Ruby projects.
31
9
 
32
- === Gem Install
33
10
 
34
- Install the ruby gem as you would any other:
11
+ == Release Notes
35
12
 
36
- gem install reap
13
+ Please see NOTES file.
37
14
 
38
- Gems still suffers from the datadir problem, so we've had
39
- to create some work arounds, for the template and scaffold
40
- tasks in particular. If you have any trouble with the Gem
41
- install please let us know so we can correct.
42
15
 
43
- === Manual Install
16
+ == Installation
44
17
 
45
- To install manually follow the usual setup.rb steps:
18
+ $ gem install reap
46
19
 
47
- 1. Download the compressed package.
48
- 2. Unpack it.
49
- 3. Change into the unpacked directory.
50
- 4. run 'sudo ruby setup.rb'
20
+ Or download the tar.gz and install manually,
51
21
 
52
- You should be good to go.
22
+ $ tar -xvzf reap-x.y.z.tar.gz
23
+ $ cd ratch-x.y.z
24
+ $ ruby script/setup.rb
53
25
 
54
26
 
55
27
  == Usage
56
28
 
57
- === Using a Reap Task
58
-
59
- Reap makes it pretty easy to use it's built-in tasks.
60
- Largely this is because it utilizes a single data file,
61
- called the ProjectInfo file, to describe project procedures.
62
-
63
- To use Reap the first thing your project will need is a
64
- ProjectInfo file in it's main directory. A template is provided
65
- and a task to copy it to your current directory. Simply type:
66
-
67
- % reap template
68
-
69
- Then edit the ProjectInfo file created. The fields are fairly self
70
- explanitiory. The template has a number of commented-out exmaples.
71
- Apart from utilization by Reap, such a file is even nice to have
72
- just on it's own informative merits too.
73
-
74
- Alternatively, Reap can build an entire new project directory with
75
- all the conventional components pre-arranged. Try it by creating
76
- a new empty directory, changing into it and then typing:
77
-
78
- % reap scaffold
79
-
80
- The directory will be filled out with all the ususal directories,
81
- lib/, bin/, etc. If you use subversion for version management,
82
- you can create a subversion layout instead.
83
-
84
- % reap scaffold svn
85
-
86
- Filling out a ProjectInfo file is simply a matter adding entries
87
- for the primary information of you project and adding sections for
88
- the tasks you wish to use in for project. For example to use the
89
- RDoc task you could add:
90
-
91
- document: !!rdoc
92
- dir: rdoc
93
-
94
- By default Reap's Rdoc task will look in the bin/ lib/ and ext/
95
- directories for ruby scripts to document. Or you can specify
96
- exactly which files to include (See the Reap RDocs themselves
97
- for parameter details.) Some tasks can operate automatically
98
- based on reasonable defaults. Indeed in some cases all one might
99
- need is the one line:
100
-
101
- name: !!task
102
-
103
- In others cases certain parameters are required for the task to function.
104
- But Reap will do it's best to extrapolate the needed information from
105
- what's available in the ProjectInfo file.
106
-
107
- Once you have some entries in your ProjectInfo file, enter:
108
-
109
- % reap
110
-
111
- And you will see a list of executable tasks. To run a task enter:
112
-
113
- % reap [task]
114
-
115
- For basic help try:
116
-
117
- % reap help
118
-
119
- For a list of all avaialbe tasks or to get more detailed help on how to
120
- use a particular task have a look at the RDoc API documentation.
121
-
122
-
123
- === Building a Reap Task
124
-
125
- Building a Reap task is pretty easy too. In fact if you ever used Rake
126
- you already have a good idea about how to do it.
127
-
128
- First make sure your project has a task/ folder. Any file in that
129
- folder will be read by Reap and used to setup tasks. In a file with
130
- in that folder you can add a task or collection of tasks.
131
- Here's an "oh-so-simple" example:
132
-
133
- module Tasks
134
-
135
- def simple( name, data )
136
-
137
- desc 'This is a custom reap task class.'
138
-
139
- task name do
140
- data.message ||= master.message
141
- puts data.message + "\n\n" + data.signed
142
- end
143
-
144
- end
145
-
146
- end
147
-
148
- The corresponding settings in the ProjectInfo file will then be:
149
-
150
- message: Hi, how are you?
151
-
152
- simple: !!simple
153
- signed: Your friend, Tom.
154
-
155
- And to use it type:
156
-
157
- % reap simple
158
-
159
- Notice the reference to 'master'. This is an OpenCascade interface
160
- (similar to OpenObject and OpenStruct) to the whole ProjectInfo dataset.
161
-
162
- You might recognize the core methods of creating a task, 'desc' and 'task'.
163
- These are used exactly as they are in Rake. We encapsulate them in a
164
- task-definition method (eg. simple) so the task can be generated dyanmically
165
- if such a section (!!simple) appears in the ProjectInfo file. Such
166
- task-definition methods are recognized by reap b/c they are stored in the
167
- special purpose Tasks module.
29
+ See http://reap.rubyforge.org.
168
30
 
169
31
 
170
- == Status
32
+ == Recent Chanages
171
33
 
172
- Reap is currently what one might call "usable beta". Most of the tasks
173
- work very well. Refinements are still common though.
34
+ PLease see CHANGES file.
174
35
 
175
- Also, Windows support is weak. Reap hasn't been fully tested in that
176
- environment so it is likely a few tasks will not yet work in this case.
177
- If you are Windows user and would like to use Reap, we would
178
- really appreciate someone working out the issues here.
179
36
 
37
+ == Copying
180
38
 
181
- == Legal
39
+ Reap, Copyright (c) 2007,2008 Tiger Ops
182
40
 
183
- Reap
184
- Copyright (c) 2004-2006 Thomas Sawyer
185
- Ruby License
41
+ Reap is distributed under the terms of the GPLv3.
186
42
 
data/bin/reap-announce ADDED
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'reap/application'
4
+
5
+ app = Reap::Application.new
6
+
7
+ app.announce
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'reap/application'
4
+
5
+ app = Reap::Application.new
6
+
7
+ app.check_load
8
+
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'reap/application'
4
+
5
+ app = Reap::Application.new
6
+
7
+ app.check_syntax
data/bin/reap-clean ADDED
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'reap/application'
4
+
5
+ app = Reap::Application.new
6
+
7
+ app.clean
data/bin/reap-clobber ADDED
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'reap/application'
4
+
5
+ app = Reap::Application.new
6
+
7
+ app.clobber
data/bin/reap-doc ADDED
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'reap/application'
4
+
5
+ app = Reap::Application.new
6
+
7
+ app.rdoc
data/bin/reap-doc-rdoc ADDED
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'reap/application'
4
+
5
+ app = Reap::Application.new
6
+
7
+ app.rdoc
data/bin/reap-doc-ri ADDED
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'reap/application'
4
+
5
+ app = Reap::Application.new
6
+
7
+ app.ridoc
data/bin/reap-init ADDED
@@ -0,0 +1,69 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ # THIS IS PRETTY SIMPLISTIC AT THE MOMENT.
4
+ # BUT I JUST WANTED TO GET SOMETHING FUNCITONAL
5
+ # GOING FOR NOW. WILL FIX IT UP LATER.
6
+
7
+ require 'reap/utilities/shellutils'
8
+ require 'reap/utilities/fileutils'
9
+
10
+ include Reap::Utilities::ShellUtils
11
+ include Reap::Utilities::FileUtils
12
+
13
+ def dryrun?
14
+ ARGV.include?('--dryrun')
15
+ end
16
+
17
+ def force?
18
+ ARGV.include?('--force')
19
+ end
20
+
21
+ #unless Dir['**/*'].empty?
22
+ # puts Dir.pwd
23
+ # ans = ask("WARNING: Directory is not empty. Continue?", 'Yn')
24
+ # case ans.downcase
25
+ # when 'y', 'yes', ''
26
+ # puts
27
+ # else
28
+ # puts "Reap initialization aborted."
29
+ # exit 0
30
+ # end
31
+ #end
32
+
33
+ if defined?(::Library) and Library['reap']
34
+ datadir = Library['reap'].datadir
35
+ else
36
+ datadir = File.join(Config::CONFIG['datadir'])
37
+ end
38
+ datadir = File.join(datadir, 'reap')
39
+ initdir = File.join(datadir, 'init')
40
+
41
+ unless File.exist?(initdir)
42
+ puts "Error: Can't locate scaffolding -- #{initdir}"
43
+ exit 0
44
+ end
45
+
46
+ puts "Creating Reap initialization files..."
47
+ puts
48
+
49
+ if File.exist?('.reap') && !force?
50
+ puts " SKIPPED: .reap"
51
+ else
52
+ file = File.join(initdir, '.reap')
53
+ cp(file, './')
54
+ puts " CREATED: .reap"
55
+ end
56
+
57
+ if File.exist?('meta/project.yaml') && !force?
58
+ puts " SKIPPED: meta/project.yaml"
59
+ else
60
+ file = File.join(initdir, 'meta/project.yaml')
61
+ mkdir_p('meta')
62
+ cp(file, 'meta/')
63
+ puts " CREATED: meta/project.yaml"
64
+ end
65
+
66
+ puts
67
+ puts "Edit the .reap and meta files to suit your project."
68
+ puts "You can run reap-scaffold to get a full project scaffolding."
69
+
data/bin/reap-inspect ADDED
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'reap/application'
4
+
5
+ app = Reap::Application.new
6
+
7
+ app.introspect
data/bin/reap-install ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'reap/application'
4
+
5
+ app = Reap::Application.new
6
+
7
+ app.site_install
8
+
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'reap/application'
4
+
5
+ app = Reap::Application.new
6
+
7
+ app.gem_install
8
+
data/bin/reap-log ADDED
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'reap/application'
4
+
5
+ app = Reap::Application.new
6
+
7
+ app.log
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'reap/application'
4
+
5
+ app = Reap::Application.new
6
+
7
+ app.log_changes
8
+
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'reap/application'
4
+
5
+ app = Reap::Application.new
6
+
7
+ app.log_notes
8
+
data/bin/reap-make ADDED
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'reap/application'
4
+
5
+ app = Reap::Application.new
6
+
7
+ app.make
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'reap/application'
4
+
5
+ app = Reap::Application.new
6
+
7
+ app.make_clean
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'reap/application'
4
+
5
+ app = Reap::Application.new
6
+
7
+ app.make_distclean
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'reap/application'
4
+
5
+ app = Reap::Application.new
6
+
7
+ app.make_extconf
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'reap/application'
4
+
5
+ app = Reap::Application.new
6
+
7
+ app.make_static
8
+
data/bin/reap-package ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'reap/application'
4
+
5
+ app = Reap::Application.new
6
+
7
+ app.package
8
+
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'reap/application'
4
+
5
+ app = Reap::Application.new
6
+
7
+ app.package_gem
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'reap/application'
4
+
5
+ app = Reap::Application.new
6
+
7
+ app.package_tgz
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'reap/application'
4
+
5
+ app = Reap::Application.new
6
+
7
+ app.package_zip
data/bin/reap-prepare ADDED
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'reap/application'
4
+
5
+ app = Reap::Application.new
6
+
7
+ app.prepare
data/bin/reap-publish ADDED
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'reap/application'
4
+
5
+ app = Reap::Application.new
6
+
7
+ app.publish
data/bin/reap-release ADDED
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'reap/application'
4
+
5
+ app = Reap::Application.new
6
+
7
+ app.release
data/bin/reap-scaffold ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'reap/application'
4
+
5
+ app = Reap::Application.new
6
+
7
+ app.scaffold
8
+
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'reap/application'
4
+
5
+ app = Reap::Application.new
6
+
7
+ app.scm_branch