Skip to content

Instantly share code, notes, and snippets.

@sauloarruda
Created May 6, 2015 13:55
Show Gist options
  • Save sauloarruda/3762ca996aa0bc2d86df to your computer and use it in GitHub Desktop.
Save sauloarruda/3762ca996aa0bc2d86df to your computer and use it in GitHub Desktop.
Como seria nosso processo em código Ruby?
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