class GemMiner::CLI
Public Instance Methods
gems(github_search_query)
click to toggle source
# File lib/gem-miner/cli.rb, line 34 def gems(github_search_query) output GemMiner::Miner.gems_for(github_search_query, options[:token]).to_yaml end
Private Instance Methods
output(result)
click to toggle source
Output the result of a command to either the terminal or a file, depending on the options given.
# File lib/gem-miner/cli.rb, line 42 def output(result) if options[:output] File.write(options[:output], result) else puts result end result end