Class: Gem::Release::Cmds::Github

Inherits:
Base
  • Object
show all
Defined in:
lib/gem/release/cmds/github.rb

Constant Summary collapse

MSGS =
{
  release:  'Creating GitHub release for %s version %s.',
  no_tag:   'Tag %s does not exist. Run `gem tag` or pass `--tag`.',
  no_repo:  'Could not determine the repository name. Please pass `--repo REPO`, or set homepage or metadata[:github_url] to the GitHub repository URL in the gemspec.',
  no_token: 'Could not determine the GitHub OAuth token. Please pass `--token TOKEN`. See https://developer.github.com/v3/#oauth2-token-sent-in-a-header for more details.',
}.freeze

Constants inherited from Base

Base::DEFAULTS, Base::WIDTH

Constants included from Helper::Hash

Helper::Hash::MERGER

Instance Attribute Summary

Attributes inherited from Base

#args, #context, #gem, #opts

Instance Method Summary collapse

Methods inherited from Base

arg, args, #config, default, #defaults, descr, description, #in_dirs, #in_gem_dirs, inherited, #initialize, opt, opts, #pretend?, #quiet?, summary, usage

Methods included from Helper::String

#camelize, #underscore, #wrap

Methods included from Helper

#abort, #cmd, #gem_cmd

Methods included from Helper::Hash

#deep_merge, #except, #only, #symbolize_keys

Methods included from Registry

included

Constructor Details

This class inherits a constructor from Gem::Release::Cmds::Base

Instance Method Details

#runObject


23
24
25
26
27
28
29
# File 'lib/gem/release/cmds/github.rb', line 23

def run
  in_gem_dirs do
    announce :release, gem.name, tag_name
    validate
    release
  end
end