Class: Wheelbarrow::CLI
- Inherits:
-
Thor
- Object
- Thor
- Wheelbarrow::CLI
- Defined in:
- lib/wheelbarrow/cli.rb
Instance Method Summary collapse
Instance Method Details
#pull_request ⇒ Object
24 25 26 27 28 29 30 31 32 33 34 35 |
# File 'lib/wheelbarrow/cli.rb', line 24 def pull_request Utils.ensure_within_git! do args = { title: [:title], description: [:description], target_branch: [:target_branch] } pr_response = Bucketeer.instance.send_pull_request! args puts pretty_pr_status(pr_response) end rescue => e puts e. end |
#version ⇒ Object
6 7 8 |
# File 'lib/wheelbarrow/cli.rb', line 6 def version puts Wheelbarrow::VERSION end |