Class: Gitload::Commands::Load
- Inherits:
-
Object
- Object
- Gitload::Commands::Load
- Defined in:
- lib/gitload/commands/load.rb
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Load
constructor
A new instance of Load.
- #run ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ Load
Returns a new instance of Load.
6 7 |
# File 'lib/gitload/commands/load.rb', line 6 def initialize = {} end |
Instance Method Details
#run ⇒ Object
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 |