lib/hub/commands.rb
def create_repo(options = {})
      url = API_CREATE
      params = {'login' => github_user, 'token' => github_token, 'name' => repo_name}
      params['public'] = '0' if options[:private]
      params['description'] = options[:description] if options[:description]
      params['homepage'] = options[:homepage] if options[:homepage]

      response = Net::HTTP.post_form(URI(url), params)
      response.error! unless Net::HTTPSuccess === response
    end
# Creates a new repo using the GitHub API.
#
# Returns nothing.
Creates a new repo using the GitHub API.
Returns nothing.
Creates a new repo using the GitHub API . Returns nothing .
def create_repo(options = {})
      url = API_CREATE
      params = {'login' => github_user, 'token' => github_token, 'name' => repo_name}
      params['public'] = '0' if options[:private]
      params['description'] = options[:description] if options[:description]
      params['homepage'] = options[:homepage] if options[:homepage]
      response = Net::HTTP.post_form(URI(url), params)
      response.error! unless Net::HTTPSuccess === response
    end
def create_repo ( options = { } ) url = API_CREATE params = { 'login' => github_user , 'token' => github_token , 'name' => repo_name } params [ 'public' ] = '0' if options [ :private ] params [ 'description' ] = options [ :description ] if options [ :description ] params [ 'homepage' ] = options [ :homepage ] if options [ :homepage ] response = Net :: HTTP . post_form ( URI ( url ) , params ) response . error! unless Net :: HTTPSuccess === response end
Creates a new repo using the GitHub API.
Creates a new repo using the GitHub API .
options