dev 2.0.204 → 2.0.205
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/apps/git.rb +4 -0
- data/lib/base/project.rb +5 -1
- data/lib/base/projects.rb +11 -0
- data/lib/dev.rb +3 -3
- data/lib/tasks/default.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e69f73e2613e5aa521aaf12a5441ada4bd125949
|
4
|
+
data.tar.gz: f45c5a1dd08e4cf33c99b5a08347a1b2c3eba00e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 33bf019edb33e9681fea3855c296d0e1e067613a6cfbe8dd10e0e7521f9f4bfe184eb29b42fdcd944382731e04d006fa129e0fe61f2e4a6f46cd1994babafcf9
|
7
|
+
data.tar.gz: 43b36f7d3154780c90d1cc6d6b559d787fbc4840bafa9dcb41cd77b84a55417f58275daa363cd6b231bc54e7325b35115d8ff0fd9cbbb13890ae6113646d5479
|
data/lib/apps/git.rb
CHANGED
data/lib/base/project.rb
CHANGED
@@ -103,7 +103,11 @@ class Project < Hash
|
|
103
103
|
"#{Environment.dev_root}/make/#{self.fullname}-#{tag}"
|
104
104
|
end
|
105
105
|
|
106
|
-
def make tag
|
106
|
+
def make tag=''
|
107
|
+
tag=Git.latest_tag if tag.length==0
|
108
|
+
|
109
|
+
raise 'no tag specified' if tag.length==0
|
110
|
+
|
107
111
|
rake_default=nil
|
108
112
|
logfile="#{Environment.dev_root}/log/#{self.fullname}/#{tag}/#{Environment.user}@#{Environment.machine}.json"
|
109
113
|
if(File.exists?(logfile))
|
data/lib/base/projects.rb
CHANGED
@@ -39,6 +39,17 @@ class Projects < Hash
|
|
39
39
|
}
|
40
40
|
end
|
41
41
|
|
42
|
+
def make args
|
43
|
+
filter=''
|
44
|
+
filter=args[1] if args.length > 0
|
45
|
+
self.each{|k,v|
|
46
|
+
if filter.length==0 || k.include?(filter)
|
47
|
+
puts "making #{k}"
|
48
|
+
v.make
|
49
|
+
end
|
50
|
+
}
|
51
|
+
end
|
52
|
+
|
42
53
|
def self.user_projects_filename
|
43
54
|
FileUtils.mkdir("#{Environment.dev_root}/data") if(!File.exists?("#{Environment.dev_root}/data"))
|
44
55
|
"#{Environment.dev_root}/data/PROJECTS.json"
|
data/lib/dev.rb
CHANGED
@@ -13,10 +13,10 @@ PROJECT=Project.new()
|
|
13
13
|
|
14
14
|
class Dev
|
15
15
|
def self.execute args
|
16
|
-
puts 'dev'
|
17
|
-
puts "args: #{args.to_s}"
|
18
|
-
|
19
16
|
PROJECTS.show(args.length>1 ? args[1]:'') if args.length > 0 && args[0] == 'list'
|
17
|
+
PROJECTS.make(args) if args.length > 0 && args[0] == 'make'
|
18
|
+
puts 'Usage:'
|
19
|
+
puts ' list [pattern]'
|
20
20
|
end
|
21
21
|
end
|
22
22
|
|
data/lib/tasks/default.rb
CHANGED