Class: Upstream::Tracker
- Inherits:
-
Object
- Object
- Upstream::Tracker
- Defined in:
- lib/upstream.rb
Instance Attribute Summary collapse
-
#path ⇒ Object
readonly
Returns the value of attribute path.
-
#pull ⇒ Object
readonly
Returns the value of attribute pull.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(path, pull = false) ⇒ Tracker
constructor
A new instance of Tracker.
- #setup ⇒ Object
Constructor Details
#initialize(path, pull = false) ⇒ Tracker
Returns a new instance of Tracker.
8 9 10 11 |
# File 'lib/upstream.rb', line 8 def initialize(path, pull=false) @path = path @pull = pull end |
Instance Attribute Details
#path ⇒ Object (readonly)
Returns the value of attribute path.
6 7 8 |
# File 'lib/upstream.rb', line 6 def path @path end |
#pull ⇒ Object (readonly)
Returns the value of attribute pull.
6 7 8 |
# File 'lib/upstream.rb', line 6 def pull @pull end |
Class Method Details
.run(path, pull) ⇒ Object
13 14 15 |
# File 'lib/upstream.rb', line 13 def self.run(path, pull) new(path, pull).setup end |
Instance Method Details
#setup ⇒ Object
17 18 19 20 |
# File 'lib/upstream.rb', line 17 def setup wheneverizer = Wheneverizer.new(path, pull) wheneverizer.run end |