Class: Space::Screen::Progress

Inherits:
View
  • Object
show all
Defined in:
lib/space/screen/progress.rb

Instance Attribute Summary

Attributes inherited from View

#project

Instance Method Summary collapse

Methods included from Helpers

#bundle_deps, #bundle_info, #bundle_status, #format_boolean, #git_ahead, #git_status, #i, #project_title, #repo_local, #repo_local?, #repo_name, #repo_selected?, #repo_status, #tableize

Constructor Details

#initializeProgress

Returns a new instance of Progress.



4
5
6
7
# File 'lib/space/screen/progress.rb', line 4

def initialize(*)
  super
  Events.subscribe(self, :start, :update)
end

Instance Method Details

#notify(event) ⇒ Object



9
10
11
12
13
14
15
16
# File 'lib/space/screen/progress.rb', line 9

def notify(event)
  case event
  when :start
    clear
  when :update
    print '.'
  end
end