dev 1.0.247 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/LICENSE +4 -4
- data/lib/dev.rb +8 -60
- metadata +26 -69
- data/README +0 -103
- data/bin/devgem +0 -71
- data/lib/dev/Array.rb +0 -17
- data/lib/dev/BoostBuild.rb +0 -94
- data/lib/dev/Commands.rb +0 -185
- data/lib/dev/Database.rb +0 -134
- data/lib/dev/Dep.rb +0 -117
- data/lib/dev/Deps.rb +0 -44
- data/lib/dev/Environment.rb +0 -142
- data/lib/dev/Hash.rb +0 -92
- data/lib/dev/MsBuild.rb +0 -17
- data/lib/dev/Paths.rb +0 -50
- data/lib/dev/Project.rb +0 -175
- data/lib/dev/Scm.rb +0 -125
- data/lib/dev/Svn.rb +0 -55
- data/lib/dev/SystemCall.rb +0 -288
- data/lib/dev/Tasks.rb +0 -140
- data/lib/dev/cmd/Build.rb +0 -112
- data/lib/dev/cmd/Commit.rb +0 -19
- data/lib/dev/cmd/Compile.rb +0 -35
- data/lib/dev/cmd/DeepPull.rb +0 -56
- data/lib/dev/cmd/Info.rb +0 -16
- data/lib/dev/cmd/Pull.rb +0 -46
- data/lib/dev/cmd/Replace.rb +0 -69
- data/lib/dev/cmd/Setup.rb +0 -28
- data/lib/dev/cmd/Test.rb +0 -34
- data/lib/dev/cmd/Update.rb +0 -10
data/LICENSE
CHANGED
@@ -1,5 +1,4 @@
|
|
1
|
-
|
2
|
-
Apache License
|
1
|
+
Apache License
|
3
2
|
Version 2.0, January 2004
|
4
3
|
http://www.apache.org/licenses/
|
5
4
|
|
@@ -179,7 +178,7 @@
|
|
179
178
|
APPENDIX: How to apply the Apache License to your work.
|
180
179
|
|
181
180
|
To apply the Apache License to your work, attach the following
|
182
|
-
boilerplate notice, with the fields enclosed by brackets "
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "{}"
|
183
182
|
replaced with your own identifying information. (Don't include
|
184
183
|
the brackets!) The text should be enclosed in the appropriate
|
185
184
|
comment syntax for the file format. We also recommend that a
|
@@ -187,7 +186,7 @@
|
|
187
186
|
same "printed page" as the copyright notice for easier
|
188
187
|
identification within third-party archives.
|
189
188
|
|
190
|
-
Copyright
|
189
|
+
Copyright {yyyy} {name of copyright owner}
|
191
190
|
|
192
191
|
Licensed under the Apache License, Version 2.0 (the "License");
|
193
192
|
you may not use this file except in compliance with the License.
|
@@ -200,3 +199,4 @@
|
|
200
199
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
201
200
|
See the License for the specific language governing permissions and
|
202
201
|
limitations under the License.
|
202
|
+
|
data/lib/dev.rb
CHANGED
@@ -1,66 +1,14 @@
|
|
1
|
-
require '
|
1
|
+
require 'dev_commands'
|
2
|
+
require 'dev_tasks'
|
3
|
+
require 'rake/clean'
|
2
4
|
|
3
|
-
|
4
|
-
start_time=Time.now
|
5
|
+
CLOBBER.include('*.gem')
|
5
6
|
|
6
|
-
|
7
|
-
Encoding.default_external=Encoding::UTF_8
|
8
|
-
Encoding.default_internal=Encoding::UTF_8
|
9
|
-
end
|
7
|
+
Tasks.initialize(COMMANDS)
|
10
8
|
|
11
|
-
#if !RUBY_PLATFORM.include?("darwin")
|
12
|
-
# begin
|
13
|
-
#require 'rainbow' if(RUBY_VERSION != "1.8.7")
|
14
|
-
# rescue
|
15
|
-
#puts "require 'rainbow' threw an exception"
|
16
|
-
# end
|
17
|
-
#else
|
18
|
-
puts "skipping rainbow on mac os"
|
19
|
-
class String
|
20
|
-
def foreground arg
|
21
|
-
return self
|
22
|
-
end
|
23
|
-
def bright
|
24
|
-
return self
|
25
|
-
end
|
26
|
-
end
|
27
|
-
#end
|
28
9
|
|
29
|
-
|
10
|
+
desc 'perform project commands to push gem development'
|
11
|
+
task :default => [:pull,:build,:test,:clean,:publish,:clobber,:add,:commit,:push]
|
30
12
|
|
31
|
-
|
32
|
-
def puts_debug msg
|
33
|
-
if(defined?(DEV_DEBUG))
|
34
|
-
puts msg
|
35
|
-
end
|
36
|
-
end
|
37
|
-
|
38
|
-
puts_debug "dev.rb loading, after require 'semver' elapsed time " + (Time.now-start_time).to_s
|
39
|
-
start_time=Time.now
|
40
|
-
|
41
|
-
# if DEV_DEBUG_VERBOSE is defined, puts_debug_verbose will send message to the console
|
42
|
-
def puts_debug_verbose msg
|
43
|
-
if(defined?(DEV_DEBUG_VERBOSE))
|
44
|
-
puts msg
|
45
|
-
end
|
46
|
-
end
|
47
|
-
|
48
|
-
puts_debug "read " + __FILE__
|
49
|
-
|
50
|
-
puts_debug "dev.rb loading, before loading ruby files (part 1) elapsed time " + (Time.now-start_time).to_s
|
51
|
-
start_time=Time.now
|
52
|
-
["Environment","Array","Hash","SystemCall","Scm","MsBuild","Paths","Dep","Deps","Database","BoostBuild","Project","Commands","Tasks"].each{ |f| require "#{File.dirname(__FILE__)}/dev/#{f}.rb" }
|
53
|
-
|
54
|
-
puts_debug "dev.rb loading, before loading ruby files (part 2) elapsed time " + (Time.now-start_time).to_s
|
55
|
-
start_time=Time.now
|
56
|
-
|
57
|
-
if(RUBY_VERSION != "1.8.7")
|
58
|
-
Dir["#{File.dirname(__FILE__)}/dev/**/*.rb"].each{ |f| require f }
|
59
|
-
end
|
60
|
-
puts_debug "dev.rb loading, after loading ruby files elapsed time " + (Time.now-start_time).to_s
|
61
|
-
|
62
|
-
DEV_ROOT=Dev::Environment.dev_root
|
63
|
-
|
64
|
-
if(RUBY_VERSION == "1.8.7")
|
65
|
-
DEV_NO_DEFAULT_TASK = 1
|
13
|
+
class Dev
|
66
14
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dev
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,26 +9,10 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2015-01-13 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
|
-
name:
|
16
|
-
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
|
-
requirements:
|
19
|
-
- - ! '>='
|
20
|
-
- !ruby/object:Gem::Version
|
21
|
-
version: '0'
|
22
|
-
type: :runtime
|
23
|
-
prerelease: false
|
24
|
-
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
|
-
requirements:
|
27
|
-
- - ! '>='
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
version: '0'
|
30
|
-
- !ruby/object:Gem::Dependency
|
31
|
-
name: semver
|
15
|
+
name: rspec
|
32
16
|
requirement: !ruby/object:Gem::Requirement
|
33
17
|
none: false
|
34
18
|
requirements:
|
@@ -44,7 +28,7 @@ dependencies:
|
|
44
28
|
- !ruby/object:Gem::Version
|
45
29
|
version: '0'
|
46
30
|
- !ruby/object:Gem::Dependency
|
47
|
-
name:
|
31
|
+
name: dev_commands
|
48
32
|
requirement: !ruby/object:Gem::Requirement
|
49
33
|
none: false
|
50
34
|
requirements:
|
@@ -60,7 +44,7 @@ dependencies:
|
|
60
44
|
- !ruby/object:Gem::Version
|
61
45
|
version: '0'
|
62
46
|
- !ruby/object:Gem::Dependency
|
63
|
-
name:
|
47
|
+
name: dev_environment
|
64
48
|
requirement: !ruby/object:Gem::Requirement
|
65
49
|
none: false
|
66
50
|
requirements:
|
@@ -76,7 +60,7 @@ dependencies:
|
|
76
60
|
- !ruby/object:Gem::Version
|
77
61
|
version: '0'
|
78
62
|
- !ruby/object:Gem::Dependency
|
79
|
-
name:
|
63
|
+
name: dev_tasks
|
80
64
|
requirement: !ruby/object:Gem::Requirement
|
81
65
|
none: false
|
82
66
|
requirements:
|
@@ -92,7 +76,7 @@ dependencies:
|
|
92
76
|
- !ruby/object:Gem::Version
|
93
77
|
version: '0'
|
94
78
|
- !ruby/object:Gem::Dependency
|
95
|
-
name:
|
79
|
+
name: dev_projects
|
96
80
|
requirement: !ruby/object:Gem::Requirement
|
97
81
|
none: false
|
98
82
|
requirements:
|
@@ -108,14 +92,14 @@ dependencies:
|
|
108
92
|
- !ruby/object:Gem::Version
|
109
93
|
version: '0'
|
110
94
|
- !ruby/object:Gem::Dependency
|
111
|
-
name:
|
95
|
+
name: rspec
|
112
96
|
requirement: !ruby/object:Gem::Requirement
|
113
97
|
none: false
|
114
98
|
requirements:
|
115
99
|
- - ! '>='
|
116
100
|
- !ruby/object:Gem::Version
|
117
101
|
version: '0'
|
118
|
-
type: :
|
102
|
+
type: :development
|
119
103
|
prerelease: false
|
120
104
|
version_requirements: !ruby/object:Gem::Requirement
|
121
105
|
none: false
|
@@ -124,23 +108,23 @@ dependencies:
|
|
124
108
|
- !ruby/object:Gem::Version
|
125
109
|
version: '0'
|
126
110
|
- !ruby/object:Gem::Dependency
|
127
|
-
name:
|
111
|
+
name: dev_commands
|
128
112
|
requirement: !ruby/object:Gem::Requirement
|
129
113
|
none: false
|
130
114
|
requirements:
|
131
|
-
- -
|
115
|
+
- - <=
|
132
116
|
- !ruby/object:Gem::Version
|
133
|
-
version:
|
134
|
-
type: :
|
117
|
+
version: 0.0.27
|
118
|
+
type: :development
|
135
119
|
prerelease: false
|
136
120
|
version_requirements: !ruby/object:Gem::Requirement
|
137
121
|
none: false
|
138
122
|
requirements:
|
139
|
-
- -
|
123
|
+
- - <=
|
140
124
|
- !ruby/object:Gem::Version
|
141
|
-
version:
|
125
|
+
version: 0.0.27
|
142
126
|
- !ruby/object:Gem::Dependency
|
143
|
-
name:
|
127
|
+
name: dev_environment
|
144
128
|
requirement: !ruby/object:Gem::Requirement
|
145
129
|
none: false
|
146
130
|
requirements:
|
@@ -156,23 +140,23 @@ dependencies:
|
|
156
140
|
- !ruby/object:Gem::Version
|
157
141
|
version: '0'
|
158
142
|
- !ruby/object:Gem::Dependency
|
159
|
-
name:
|
143
|
+
name: dev_tasks
|
160
144
|
requirement: !ruby/object:Gem::Requirement
|
161
145
|
none: false
|
162
146
|
requirements:
|
163
|
-
- -
|
147
|
+
- - <=
|
164
148
|
- !ruby/object:Gem::Version
|
165
|
-
version:
|
149
|
+
version: 1.0.39
|
166
150
|
type: :development
|
167
151
|
prerelease: false
|
168
152
|
version_requirements: !ruby/object:Gem::Requirement
|
169
153
|
none: false
|
170
154
|
requirements:
|
171
|
-
- -
|
155
|
+
- - <=
|
172
156
|
- !ruby/object:Gem::Version
|
173
|
-
version:
|
157
|
+
version: 1.0.39
|
174
158
|
- !ruby/object:Gem::Dependency
|
175
|
-
name:
|
159
|
+
name: dev_projects
|
176
160
|
requirement: !ruby/object:Gem::Requirement
|
177
161
|
none: false
|
178
162
|
requirements:
|
@@ -189,40 +173,12 @@ dependencies:
|
|
189
173
|
version: '0'
|
190
174
|
description: development tasks
|
191
175
|
email: lou.parslow@gmail.com
|
192
|
-
executables:
|
193
|
-
- devgem
|
176
|
+
executables: []
|
194
177
|
extensions: []
|
195
178
|
extra_rdoc_files: []
|
196
179
|
files:
|
197
180
|
- LICENSE
|
198
|
-
- README
|
199
|
-
- lib/dev/Array.rb
|
200
|
-
- lib/dev/BoostBuild.rb
|
201
|
-
- lib/dev/cmd/Build.rb
|
202
|
-
- lib/dev/cmd/Commit.rb
|
203
|
-
- lib/dev/cmd/Compile.rb
|
204
|
-
- lib/dev/cmd/DeepPull.rb
|
205
|
-
- lib/dev/cmd/Info.rb
|
206
|
-
- lib/dev/cmd/Pull.rb
|
207
|
-
- lib/dev/cmd/Replace.rb
|
208
|
-
- lib/dev/cmd/Setup.rb
|
209
|
-
- lib/dev/cmd/Test.rb
|
210
|
-
- lib/dev/cmd/Update.rb
|
211
|
-
- lib/dev/Commands.rb
|
212
|
-
- lib/dev/Database.rb
|
213
|
-
- lib/dev/Dep.rb
|
214
|
-
- lib/dev/Deps.rb
|
215
|
-
- lib/dev/Environment.rb
|
216
|
-
- lib/dev/Hash.rb
|
217
|
-
- lib/dev/MsBuild.rb
|
218
|
-
- lib/dev/Paths.rb
|
219
|
-
- lib/dev/Project.rb
|
220
|
-
- lib/dev/Scm.rb
|
221
|
-
- lib/dev/Svn.rb
|
222
|
-
- lib/dev/SystemCall.rb
|
223
|
-
- lib/dev/Tasks.rb
|
224
181
|
- lib/dev.rb
|
225
|
-
- bin/devgem
|
226
182
|
homepage: http://rubygems.org/gems/dev
|
227
183
|
licenses: []
|
228
184
|
post_install_message:
|
@@ -234,7 +190,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
234
190
|
requirements:
|
235
191
|
- - ! '>='
|
236
192
|
- !ruby/object:Gem::Version
|
237
|
-
version: 1.9.
|
193
|
+
version: 1.9.3
|
238
194
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
239
195
|
none: false
|
240
196
|
requirements:
|
@@ -242,9 +198,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
242
198
|
- !ruby/object:Gem::Version
|
243
199
|
version: '0'
|
244
200
|
requirements: []
|
245
|
-
rubyforge_project:
|
201
|
+
rubyforge_project:
|
246
202
|
rubygems_version: 1.8.28
|
247
203
|
signing_key:
|
248
204
|
specification_version: 3
|
249
205
|
summary: dev
|
250
206
|
test_files: []
|
207
|
+
has_rdoc:
|
data/README
DELETED
@@ -1,103 +0,0 @@
|
|
1
|
-
=dev {<img src="https://badge.fury.io/rb/dev.png" alt="Gem Version" />}[http://badge.fury.io/rb/dev]
|
2
|
-
The dev gem may be used to auto generate rake tasks for a rakefile.rb.
|
3
|
-
The gem defined DEV as a hash, which is populated based on the content
|
4
|
-
of the directory in which the rakefile.rb resides.
|
5
|
-
The dev gem provides task definitions to support the development of ruby,c#,c++ and c projects.
|
6
|
-
The DEV variable may be manipulated to modify the behavior of defined tasks or to
|
7
|
-
cause additional task to be generated.
|
8
|
-
|
9
|
-
==Installation
|
10
|
-
dev can be installed by the single command
|
11
|
-
gem install dev
|
12
|
-
|
13
|
-
==Usage
|
14
|
-
dev can be included in a rakefile.rb with
|
15
|
-
require 'dev'
|
16
|
-
|
17
|
-
==Reference
|
18
|
-
===Variables
|
19
|
-
====DEV is a global instance of a Hash. The variable is define by require 'dev' statement
|
20
|
-
DEV may define several keys automatically
|
21
|
-
DEV[:scm_uri] # the uri for the source code management system.
|
22
|
-
DEV[:scm_type] # the type of source code managment, (none,svn,git).
|
23
|
-
DEV[:directory] # the full directory name of the rakefile.rb.
|
24
|
-
DEV[:fullname] # the name of the project (inferred by directory structure relative to DEV_ROOT).
|
25
|
-
DEV[:version] # the version specified by the .semver file.
|
26
|
-
DEV[:src_glob] # the glob pattern(s) defining the source files.
|
27
|
-
DEV[:dev_root] # the root working directory ENV['DEV_ROOT'] if defined, otherwise user home directory.
|
28
|
-
DEV[:toolset] # the boost build toolset, if available
|
29
|
-
DEV[:paths] # a hash containing various environment paths
|
30
|
-
====CLEAN is a Rake::FileList that specifies file(s) to be removed during the clean task.
|
31
|
-
CLEAN.include('doc')
|
32
|
-
====CLOBBER is a Rake::FileList that specifies file(s) to be removed during the clobber task.
|
33
|
-
CLOBBER.include('obj')
|
34
|
-
===Tasks
|
35
|
-
dev will automatically generated the following tasks as applicable.
|
36
|
-
rake add # add files defined by src_glob to source code management, not generated if no scm can be detected.
|
37
|
-
rake check # checks if the project default task may be skipped
|
38
|
-
rake clean # Remove any temporary products.
|
39
|
-
rake clobber # Remove any generated file.
|
40
|
-
rake commit # commits to scm. not generated if no scm detected.
|
41
|
-
rake compile # compile command(s).
|
42
|
-
rake features # tests cucumber features
|
43
|
-
rake info # display information about the rakefile
|
44
|
-
rake replace # replace text
|
45
|
-
rake setup # setup the project environment
|
46
|
-
rake test # run unit tests
|
47
|
-
rake update # updates changes from source code management
|
48
|
-
rake default # the default task for the rakefile
|
49
|
-
|
50
|
-
If either pre_compile or post_compile tasks are manually created, then TASKS.refresh is called,
|
51
|
-
these task will be executed in the correct sequence (either before or after compile task) by the default task
|
52
|
-
require 'dev'
|
53
|
-
|
54
|
-
task :pre_compile do
|
55
|
-
puts 'pre_compile'
|
56
|
-
end
|
57
|
-
|
58
|
-
task :post_compile
|
59
|
-
puts 'post_compile'
|
60
|
-
end
|
61
|
-
|
62
|
-
TASKS.refresh
|
63
|
-
|
64
|
-
the default task is automatically generated by require 'dev'. It will be defined as dependent on the following tasks if they are defined:
|
65
|
-
["check","setup","replace","pre_compile","compile","post_compile","pre_test",
|
66
|
-
"test","post_test","add","commit","update","clean","finalize"]
|
67
|
-
to prevent the default task from being defined, define DEV_NO_DEFAULT_TASK prior to require 'dev'
|
68
|
-
DEV_NO_DEFAULT_TASK=1
|
69
|
-
require 'dev'
|
70
|
-
|
71
|
-
# now, can manually define default task
|
72
|
-
task :default do
|
73
|
-
puts "hello default task"
|
74
|
-
end
|
75
|
-
to provide a custom set of default dependencies, the DEFAULT_TASK_ORDER may be defined prior to require 'dev',
|
76
|
-
then a call to TASKS.refresh can be made to redefine the default task
|
77
|
-
DEFAULT_TASK_ORDER=["step1","step2"]
|
78
|
-
require 'dev'
|
79
|
-
|
80
|
-
task :step1 do
|
81
|
-
puts "step1"
|
82
|
-
end
|
83
|
-
|
84
|
-
task :step2 do
|
85
|
-
puts "step2"
|
86
|
-
end
|
87
|
-
|
88
|
-
TASKS.refresh
|
89
|
-
|
90
|
-
==License
|
91
|
-
Copyright 2012-2013 Lou Parslow
|
92
|
-
|
93
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
94
|
-
you may not use this file except in compliance with the License.
|
95
|
-
You may obtain a copy of the License at
|
96
|
-
|
97
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
98
|
-
|
99
|
-
Unless required by applicable law or agreed to in writing, software
|
100
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
101
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
102
|
-
See the License for the specific language governing permissions and
|
103
|
-
limitations under the License.
|
data/bin/devgem
DELETED
@@ -1,71 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
|
3
|
-
# Copyright 2012 Lou Parslow
|
4
|
-
#
|
5
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
-
# you may not use this file except in compliance with the License.
|
7
|
-
# You may obtain a copy of the License at
|
8
|
-
#
|
9
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
10
|
-
#
|
11
|
-
# Unless required by applicable law or agreed to in writing, software
|
12
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
-
# See the License for the specific language governing permissions and
|
15
|
-
# limitations under the License.
|
16
|
-
#
|
17
|
-
#
|
18
|
-
|
19
|
-
begin
|
20
|
-
require 'rubygems'
|
21
|
-
rescue LoadError
|
22
|
-
end
|
23
|
-
|
24
|
-
require 'dev'
|
25
|
-
DB=Dev::Database.new
|
26
|
-
|
27
|
-
def get_pattern(args,index)
|
28
|
-
pattern=nil
|
29
|
-
pattern=args[index] if args.count > index
|
30
|
-
pattern="%#{pattern}%" if !pattern.nil? && !pattern.include?('%') && !pattern.include?("'") && !pattern.include?('"')
|
31
|
-
return pattern
|
32
|
-
end
|
33
|
-
|
34
|
-
def usage(args)
|
35
|
-
puts "welcome to devgem"
|
36
|
-
end
|
37
|
-
|
38
|
-
def list(args)
|
39
|
-
pattern=get_pattern(args,1)
|
40
|
-
puts "listing all branches" if pattern.nil?
|
41
|
-
puts "listing branches LIKE #{pattern}" if !pattern.nil?
|
42
|
-
branches=DB.find_branches(pattern)
|
43
|
-
branches.each{ |b| puts " #{b}" }
|
44
|
-
end
|
45
|
-
|
46
|
-
def status(args)
|
47
|
-
pattern=get_pattern(args,1)
|
48
|
-
branches=DB.find_branches(pattern)
|
49
|
-
branches.each{ |b| Dev::Cmd::Build.status(b) }
|
50
|
-
end
|
51
|
-
|
52
|
-
def build(args)
|
53
|
-
pattern=get_pattern(args,1)
|
54
|
-
puts "building all branches" if pattern.nil?
|
55
|
-
puts "building branches LIKE #{pattern}" if !pattern.nil?
|
56
|
-
branches=DB.find_branches(pattern)
|
57
|
-
branches.each{ |b| Dev::Cmd::Build.build(b) }
|
58
|
-
end
|
59
|
-
|
60
|
-
def work(args)
|
61
|
-
pattern=get_pattern(args,1)
|
62
|
-
branches=DB.find_branches(pattern)
|
63
|
-
branches.each{ |b| Dev::Cmd::Build.work(b) }
|
64
|
-
end
|
65
|
-
|
66
|
-
list(ARGV) if(ARGV.count > 0 && ARGV[0]=="list")
|
67
|
-
status(ARGV) if(ARGV.count > 0 && ARGV[0]=="status")
|
68
|
-
build(ARGV) if(ARGV.count > 0 && ARGV[0]=="build")
|
69
|
-
work(ARGV) if(ARGV.count > 0 && ARGV[0]=="work")
|
70
|
-
usage(ARGV) if(ARGV.count==0 || ARGV[0]=="help")
|
71
|
-
|