Class: GHTRetrieveUser
- Inherits:
-
GHTorrent::Command
- Object
- GHTorrent::Command
- GHTRetrieveUser
- Defined in:
- lib/ghtorrent/commands/ght_retrieve_user.rb
Constant Summary
Constants included from GHTorrent::Settings
GHTorrent::Settings::CONFIGKEYS, GHTorrent::Settings::DEFAULTS
Instance Method Summary collapse
Methods included from GHTorrent::Commands::FullUserRetriever
Methods included from GHTorrent::Retriever
#get_event, #get_events, #get_repo_events, #persister, #retrieve_commit, #retrieve_commit_comment, #retrieve_commit_comments, #retrieve_commits, #retrieve_fork, #retrieve_forks, #retrieve_issue, #retrieve_issue_comment, #retrieve_issue_comments, #retrieve_issue_event, #retrieve_issue_events, #retrieve_issue_labels, #retrieve_issues, #retrieve_languages, #retrieve_org, #retrieve_org_members, #retrieve_orgs, #retrieve_pull_req_comment, #retrieve_pull_req_comments, #retrieve_pull_req_commits, #retrieve_pull_request, #retrieve_pull_requests, #retrieve_repo, #retrieve_repo_collaborator, #retrieve_repo_collaborators, #retrieve_repo_label, #retrieve_repo_labels, #retrieve_user_byemail, #retrieve_user_byusername, #retrieve_user_follower, #retrieve_user_followers, #retrieve_user_following, #retrieve_watcher, #retrieve_watchers
Methods included from GHTorrent::Logging
#debug, #error, #info, #loggerr, #warn
Methods included from GHTorrent::Settings
#config, #merge, #merge_config_values, #override_config, #settings
Methods included from GHTorrent::Utils
included, #read_value, #user_type, #write_value
Methods included from GHTorrent::APIClient
#api_request, #num_pages, #paged_api_request
Methods inherited from GHTorrent::Command
#command_name, #override_config, #process_options, #queue_client, run, #version
Instance Method Details
#ght ⇒ Object
29 30 31 32 |
# File 'lib/ghtorrent/commands/ght_retrieve_user.rb', line 29 def ght @ght ||= TransactedGHTorrent.new(settings) @ght end |
#go ⇒ Object
34 35 36 37 |
# File 'lib/ghtorrent/commands/ght_retrieve_user.rb', line 34 def go login = ARGV[0] retrieve_user(login) end |
#prepare_options(options) ⇒ Object
15 16 17 18 19 20 21 22 |
# File 'lib/ghtorrent/commands/ght_retrieve_user.rb', line 15 def () . <<-BANNER An efficient way to get all data for a single user #{command_name} [options] login BANNER end |
#validate ⇒ Object
24 25 26 27 |
# File 'lib/ghtorrent/commands/ght_retrieve_user.rb', line 24 def validate super Trollop::die "One argument is required" unless args[0] && !args[0].empty? end |