lib/dev_flow/commands/close.rb in dev_flow-0.1.5 vs lib/dev_flow/commands/close.rb in dev_flow-0.1.6
- old
+ new
@@ -29,13 +29,13 @@
message = ARGV[2] || "close the branch by set progress to 100."
message = "[close] " + message
info "commit progress"
`git commit -am '#{message}'`
- if @config[:git_remote]
+ if @config["git_remote"]
info "push your progress to remote server"
- `git push #{@config[:git_remote]} #{current_task.branch_name}`
+ `git push #{@config["git_remote"]} #{current_task.branch_name}`
end
# goto develop branch and merge
`git checkout develop`
rslt = `git merge --no-ff #{current_task.branch_name}`
@@ -53,10 +53,10 @@
if tag
info "Tag your release as #{tag}"
`git tag #{tag}`
end
info "Push your change to remote server"
- `git push #{@config[:git_remote]} --tags master` if @config[:git_remote]
+ `git push #{@config["git_remote"]} --tags master` if @config["git_remote"]
puts "Now your are on branch #{'master'.bold.red}"
puts "You may want to review and test the program again and then switch back to develop trunk."
end