Sha256: 28daba12f246096846c1f8da14d266fc5d2d619ed7fbac4c4e718d1f8abb18c8

Contents?: true

Size: 586 Bytes

Versions: 1

Compression:

Stored size: 586 Bytes

Contents

module Space
  class Screen
    attr_reader :app

    def initialize(app)
      @app = app
    end

    def render
      system 'clear'
      puts render_project
      repos = app.repos.scoped? ? app.repos.self_and_dependencies : app.repos
      repos.each do |repo|
        puts render_repo(repo)
      end
    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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
space-0.0.3 lib/space/screen.rb