Class: CodeInventory::CLI::App

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

Instance Method Summary collapse

Instance Method Details

#github(access_token, org) ⇒ Object



11
12
13
14
15
# File 'lib/codeinventory_plugin.rb', line 11

def github(access_token, org)
  source = CodeInventory::GitHub.new({ access_token: access_token }, org, overrides: options[:overrides], exclude: options[:exclude])
  inventory = CodeInventory::Inventory.new(source)
  puts JSON.pretty_generate(inventory.projects)
end