module Gitomator::Console
Public Class Methods
context()
click to toggle source
# File lib/gitomator/console.rb, line 11 def self.context() @context end
context=(context)
click to toggle source
# File lib/gitomator/console.rb, line 7 def self.context=(context) @context = context end
Public Instance Methods
delete_repo(repo_name)
click to toggle source
# File lib/gitomator/console.rb, line 32 def delete_repo(repo_name) gitomator_context.hosting.delete_repo(repo_name) end
delete_team(team_name)
click to toggle source
# File lib/gitomator/console.rb, line 42 def delete_team(team_name) gitomator_context.hosting.delete_team(team_name) end
gitomator_context()
click to toggle source
# File lib/gitomator/console.rb, line 21 def gitomator_context Gitomator::Console::context end
gitomator_version()
click to toggle source
list_team_members(team_name)
click to toggle source
# File lib/gitomator/console.rb, line 47 def list_team_members(team_name) gitomator_context.hosting .search_users('', { team_name: team_name }).map {|u| u.username} end
search_repos(query)
click to toggle source
# File lib/gitomator/console.rb, line 28 def search_repos(query) gitomator_context.hosting.search_repos(query).map {|r| r.full_name} end
search_teams(query)
click to toggle source
# File lib/gitomator/console.rb, line 38 def search_teams(query) gitomator_context.hosting.search_teams(query).map {|t| t.name} end