module Space class Screen attr_reader :app def initialize(app) @app = app end def render system 'clear' puts render_project app.repos.each { |repo| puts render_repo(repo) } end private def render_project View.new.render(:project, :app => app, :bundle => app.bundle) end def render_repo(repo) View.new.render(:repo, :app => app, :repo => repo, :git => repo.git, :bundle => repo.bundle) end end end