Class: Upstream::Tracker

Inherits:
Object
  • Object
show all
Defined in:
lib/upstream.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

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

#pathObject (readonly)

Returns the value of attribute path.



6
7
8
# File 'lib/upstream.rb', line 6

def path
  @path
end

#pullObject (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

#setupObject



17
18
19
20
# File 'lib/upstream.rb', line 17

def setup
  wheneverizer = Wheneverizer.new(path, pull)
  wheneverizer.run
end