Class: PullRequest::Create::CLI
- Inherits:
-
Thor
- Object
- Thor
- PullRequest::Create::CLI
- Defined in:
- lib/pull_request/create/cli.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.exit_on_failure? ⇒ Boolean
6 7 8 |
# File 'lib/pull_request/create/cli.rb', line 6 def self.exit_on_failure? true end |
Instance Method Details
#create ⇒ Object
25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 |
# File 'lib/pull_request/create/cli.rb', line 25 def create setup_logger() params = { repo: [:repo], base: [:base], head: [:head], title: [:title], body: [:body] } client = Client.new(Repository.new('.')) client.create_pull_request(params) rescue StandardError => e () raise e end |
#version ⇒ Object
13 14 15 |
# File 'lib/pull_request/create/cli.rb', line 13 def version puts "PullRequest::Create version #{::PullRequest::Create::VERSION}" end |