Class: Gitload::Commands::Load

Inherits:
Object
  • Object
show all
Defined in:
lib/gitload/commands/load.rb

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Load

Returns a new instance of Load.



6
7
# File 'lib/gitload/commands/load.rb', line 6

def initialize options = {}
end

Instance Method Details

#runObject



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/gitload/commands/load.rb', line 9

def run

  Octokit.configure do |c|
    c.access_token = ENV['GITLOAD_TOKEN']
    c.auto_paginate = true
  end

  repos = Octokit.repositories ENV['GITLOAD_GITHUB_USER']

  puts repos.collect{ |r| r.to_attrs[:name] }
end