lib/hub/context.rb
## helper methods for local repo, GH projects
helper methods for local repo, GH projects
helper methods for local repo GH projects
def github_project(name, owner = nil)
      if owner and owner.index('/')
        owner, name = owner.split('/', 2)
      elsif name and name.index('/')
        owner, name = name.split('/', 2)
      else
        name ||= repo_name
        owner ||= github_user
      end
      if local_repo(false) and main_project = local_repo.main_project
        project = main_project.dup
        project.owner = owner
        project.name = name
        project
      else
        GithubProject.new(local_repo(false), owner, name)
      end
    end
def github_project ( name , owner = nil ) if owner and owner . index ( '/' ) owner , name = owner . split ( '/' , 2 ) elsif name and name . index ( '/' ) owner , name = name . split ( '/' , 2 ) else name ||= repo_name owner ||= github_user end if local_repo ( false ) and main_project = local_repo . main_project project = main_project . dup project . owner = owner project . name = name project else GithubProject . new ( local_repo ( false ) , owner , name ) end end
helper methods for local repo, GH projects
helper methods for local repo GH projects
name
owner