Created
May 6, 2015 13:55
-
-
Save sauloarruda/3762ca996aa0bc2d86df to your computer and use it in GitHub Desktop.
Como seria nosso processo em código Ruby?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class AppProject | |
def initialize(sales_project) | |
@sales_project = sales_project | |
end | |
def start | |
do_kickoff | |
do_sprint0 | |
@sales_project.sprints.each do |sprint| | |
sprint.start(self) | |
# call project.sincronize in the end | |
end | |
end | |
def sinchronize(sprint) | |
if @sales_project.all_sprints_finished? | |
do_launch_sprint && do_qa | |
end | |
def finish | |
if @sales_project.client_aproved? | |
do_deploy | |
else | |
do_qa | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment