Class: Chid::Commands::Github
- Inherits:
-
Chid::Command
- Object
- Chid::Command
- Chid::Commands::Github
- Defined in:
- lib/chid/commands/github.rb
Constant Summary
Constants inherited from Chid::Command
Instance Attribute Summary
Attributes inherited from Chid::Command
Instance Method Summary collapse
Methods inherited from Chid::Command
command, help, #initialize, map_options_with_values, run
Constructor Details
This class inherits a constructor from Chid::Command
Instance Method Details
#name ⇒ Object
35 36 37 |
# File 'lib/chid/commands/github.rb', line 35 def name self.class.arguments.map { |a| [a] }.compact.join(' ') end |
#run ⇒ Object
26 27 28 29 30 31 32 33 |
# File 'lib/chid/commands/github.rb', line 26 def run search_expression = name repositories = GitHubApi.repositories(search_expression) Paginator.new(repositories).paginate do |repository| repository.summary end end |