Class: Unlearn::Runner

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeRunner

Returns a new instance of Runner.



5
6
7
8
9
10
11
12
13
14
15
16
17
# File 'lib/unlearn/runner.rb', line 5

def initialize
  @batches = [
    '-v-000',
    '-bootcamp-prep-000',
    '-cb-000',
    '-cb-gh-000',
    '-re-coded-000',
    '-js-intro-000'
  ]

  @repos = []
  @filtered_repos = []
end

Instance Attribute Details

#batchesObject (readonly)

Returns the value of attribute batches.



3
4
5
# File 'lib/unlearn/runner.rb', line 3

def batches
  @batches
end

#filtered_reposObject (readonly)

Returns the value of attribute filtered_repos.



3
4
5
# File 'lib/unlearn/runner.rb', line 3

def filtered_repos
  @filtered_repos
end

#reposObject (readonly)

Returns the value of attribute repos.



3
4
5
# File 'lib/unlearn/runner.rb', line 3

def repos
  @repos
end

Instance Method Details

#runObject



19
20
21
22
23
# File 'lib/unlearn/runner.rb', line 19

def run
  get_repos

  filter_repos
end