dev_tasks 0.0.96 → 0.0.97
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/commands.rb +9 -9
- data/lib/dev_tasks.rb +3 -2
- data/lib/spec.json +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: fb2cc6ccb263dc95237dcb872c5708afb39dda38
|
4
|
+
data.tar.gz: db3144138408505838bcd138362d16277905ccae
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ce5f43704a70095d7ab1c2d7ed572f4161f4d11f36f38883eee87157b79ba0125d95006ee5c11aad9c542c7daf33fbc9c6cb7a9b2ca77435f247a0546fc70a13
|
7
|
+
data.tar.gz: fbc1b770fb0cc6620a51fbf159a93201d93817e6a28a70f6be4c5aec80a53887e860dd562a812549de71ab191238b2c3435d43cd32a9beab28340dbdd6d1362d
|
data/lib/commands.rb
CHANGED
@@ -12,18 +12,18 @@ class Commands < Hash
|
|
12
12
|
attr_accessor :build
|
13
13
|
|
14
14
|
def initialize
|
15
|
-
self[
|
16
|
-
self[
|
17
|
-
self[
|
18
|
-
self[
|
19
|
-
self[
|
20
|
-
self[
|
21
|
-
self[
|
22
|
-
self[
|
15
|
+
self[:pull] = Pull.new
|
16
|
+
self[:upgrade] = Upgrade.new
|
17
|
+
self[:build] = Build.new
|
18
|
+
self[:test] = Test.new
|
19
|
+
self[:add] = Add.new
|
20
|
+
self[:commit] = Commit.new
|
21
|
+
self[:publish] = Publish.new
|
22
|
+
self[:push] = Push.new
|
23
23
|
end
|
24
24
|
|
25
25
|
def update
|
26
|
-
self[
|
26
|
+
self[:upgrade].update
|
27
27
|
end
|
28
28
|
|
29
29
|
def execute_command command
|
data/lib/dev_tasks.rb
CHANGED
@@ -72,13 +72,14 @@ class DevTasks < Hash
|
|
72
72
|
end
|
73
73
|
|
74
74
|
def execute_task task
|
75
|
+
sym_task = task.to_sym
|
75
76
|
timer=Timer.new
|
76
77
|
#start_time=Time.now
|
77
78
|
Console.announce_task_start task
|
78
|
-
if(!self[:commands].has_key?(
|
79
|
+
if(!self[:commands].has_key?(sym_task))
|
79
80
|
puts "no commands discovered for task " + task
|
80
81
|
else
|
81
|
-
self[:commands][
|
82
|
+
self[:commands][sym_task].each {|c| self[:commands].execute_command(c) }
|
82
83
|
end
|
83
84
|
elapsed = timer.elapsed
|
84
85
|
#end_time=Time.now
|
data/lib/spec.json
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"name":"dev_tasks","version":"0.0.
|
1
|
+
{"name":"dev_tasks","version":"0.0.97"}
|