Class: Gem::Release::Cmds::Github
- 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
Constants included from Helper::Hash
Instance Attribute Summary
Attributes inherited from Base
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
Methods included from Helper
Methods included from Helper::Hash
#deep_merge, #except, #only, #symbolize_keys
Methods included from Registry
Constructor Details
This class inherits a constructor from Gem::Release::Cmds::Base
Instance Method Details
#run ⇒ Object
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 |