Module: PivotalTracker::Displayable::Project

Included in:
Console
Defined in:
lib/pivotal-tracker-console/displayable/project.rb

Instance Method Summary collapse

Instance Method Details

#display_project_info(project) ⇒ Object



8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# File 'lib/pivotal-tracker-console/displayable/project.rb', line 8

def display_project_info(project)
  display_project_title project
  
  puts %Q{
  - Week start day:   #{project.week_start_day}
  - Point scale:      #{project.point_scale}
  - Velocity scheme:  #{project.velocity_scheme}
  - Iteration lenght: #{project.iteration_length}
  - Initial velocity: #{project.initial_velocity}
  - Current velocity: #{project.current_velocity}
  - Last activity at: #{project.last_activity_at}
  
  Stories count:
  
    - Features:  #{project.stories.all(:story_type => ["feature"]).count}
    - Chores:    #{project.stories.all(:story_type => ["chore"]).count}
    - Bugs:      #{project.stories.all(:story_type => ["bug"]).count}
}
end

#display_project_not_found(id) ⇒ Object



28
29
30
# File 'lib/pivotal-tracker-console/displayable/project.rb', line 28

def display_project_not_found(id)
  display_error "Project #{id} not found."
end

#display_project_title(project) ⇒ Object



4
5
6
# File 'lib/pivotal-tracker-console/displayable/project.rb', line 4

def display_project_title(project)
  puts "#{project.id} - #{project.name}"
end