dev_tasks 0.0.134 → 0.0.135
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/commit.rb +1 -0
- data/lib/console.rb +8 -0
- data/lib/spec.json +1 -1
- data/lib/verify.rb +3 -1
- metadata +1 -1
data/lib/commit.rb
CHANGED
data/lib/console.rb
CHANGED
@@ -2,6 +2,14 @@ require_relative './color.rb'
|
|
2
2
|
|
3
3
|
class Console
|
4
4
|
|
5
|
+
def self.debug message
|
6
|
+
if(defined?(DEV_TASKS))
|
7
|
+
if(DEV_TASKS.contains(:debug))
|
8
|
+
puts message
|
9
|
+
end
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
5
13
|
def self.announce_task_start task
|
6
14
|
line = Color.bold + Color.cyan + "[:" + task + "]" + Color.clear
|
7
15
|
#while(line.length < 80) do
|
data/lib/spec.json
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"name":"dev_tasks","version":"0.0.
|
1
|
+
{"name":"dev_tasks","version":"0.0.135"}
|
data/lib/verify.rb
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
require_relative('./environment.rb')
|
2
|
+
require_relative('./console.rb')
|
2
3
|
|
3
4
|
class Verify < Array
|
4
5
|
|
@@ -7,10 +8,11 @@ class Verify < Array
|
|
7
8
|
end
|
8
9
|
|
9
10
|
def update
|
10
|
-
|
11
|
+
|
11
12
|
if(defined?(DEV_TASKS))
|
12
13
|
if(Environment.scm=='svn')
|
13
14
|
latestRev=Environment.svn_latest_revision
|
15
|
+
Console.debug "Verify.update, svn_latest_revision=#{latestRev}"
|
14
16
|
uri=DEV_TASKS[:scm_origin]+"@"+latestRev
|
15
17
|
dep_dir="#{Environment.dev_root}/dep/#{DEV_TASKS[:relative_directory]}@#{latestRev}"
|
16
18
|
if(!File.exists?(dep_dir))
|