Sha256: e3116f734c7be140ab39bc4636c15111eab64cb7dd43d70bdb34b8a522b59ce7

Contents?: true

Size: 550 Bytes

Versions: 2

Compression:

Stored size: 550 Bytes

Contents

module Space
  class Screen
    class Dashboard < View
      def render
        App.logger.debug('RENDER dashboard')
        clear
        render_header
        render_repos
      end

      def notify(event)
        render
      end

      private

        def render_repos
          project.repos.scope.self_and_deps.each do |repo|
            render_template(:repo, assigns(repo))
          end
        end

        def assigns(repo)
          { repos: project.repos, repo: repo, git: repo.git, bundle: repo.bundle }
        end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
space-0.0.5 lib/space/screen/dashboard.rb
space-0.0.4 lib/space/screen/dashboard.rb