def reponame
      override = @reponame || ENV["BOXEN_REPO_NAME"]
      return override unless override.nil?

      if File.directory? repodir
        ghuri = URI(ghurl)
        url = Dir.chdir(repodir) { `git config remote.origin.url`.strip }

        # find the path and strip off the .git suffix
        repo_exp = Regexp.new Regexp.escape(ghuri.host) + "[/:]([^/]+/[^/]+)"
        if $?.success? && repo_exp.match(url)
          @reponame = $1.sub /\.git$/, ""
        end
      end
    end
def reponame
      override = @reponame || ENV["BOXEN_REPO_NAME"]
      return override unless override.nil?

      if File.directory? repodir
        ghuri = URI(ghurl)
        url = Dir.chdir(repodir) { `git config remote.origin.url`.strip }

        # find the path and strip off the .git suffix
        repo_exp = Regexp.new Regexp.escape(ghuri.host) + "[/:]([^/]+/[^/]+)"
        if $?.success? && repo_exp.match(url)
          @reponame = $1.sub /\.git$/, ""
        end
      end
    end
The repo on GitHub to use for error reports and automatic
 updates, in `owner/repo` format. Default is the `origin` of a
 Git repo in `repodir`, if it exists and points at GitHub.
 Respects the `BOXEN_REPO_NAME` environment variable.