dev_flow 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/dev_flow/commands/complete.rb +1 -0
- data/lib/dev_flow/commands/info.rb +4 -0
- data/lib/dev_flow/version.rb +1 -1
- metadata +2 -2
@@ -9,6 +9,7 @@ module DevFlow
|
|
9
9
|
error "Not on a known task branch. Can not continue." unless current_task
|
10
10
|
|
11
11
|
info "Assigned resources for current task: " + current_task.resources.join(", ")
|
12
|
+
puts "debug: resource list are #{current_task.resources.join(',')}, i am #{@config[:whoami]}"
|
12
13
|
unless current_task.resources.include?(@config[:whoami])
|
13
14
|
if i_have_power?
|
14
15
|
role = 'supervisor' if i_am_supervisor?
|
@@ -30,9 +30,13 @@ module DevFlow
|
|
30
30
|
ans = STDIN.gets.chomp!
|
31
31
|
if ans == 0.to_s
|
32
32
|
switch_to! 'develop'
|
33
|
+
`git pull #{@config["git_remote"]} develop` if @config["git_remote"]
|
33
34
|
elsif @waiting[ans.to_i]
|
34
35
|
switch_to! @waiting[ans.to_i].branch_name
|
35
36
|
|
37
|
+
# update your work directory
|
38
|
+
`git pull #{@config["git_remote"]} #{@waiting[ans.to_i].branch_name}` if @config["git_remote"]
|
39
|
+
|
36
40
|
# if the task not started yet, update progress
|
37
41
|
upload_progress!(@waiting[ans.to_i], 10) unless @waiting[ans.to_i].progress > 0
|
38
42
|
else
|
data/lib/dev_flow/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dev_flow
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-04-
|
12
|
+
date: 2013-04-07 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: term-ansicolor
|