Class: Rubyhub::Operations::PullRequest::Create
- Inherits:
-
Object
- Object
- Rubyhub::Operations::PullRequest::Create
- Defined in:
- lib/rubyhub/operations/pull_request/create.rb
Class Method Summary collapse
Class Method Details
.call(options) ⇒ Object
6 7 8 9 10 11 12 13 |
# File 'lib/rubyhub/operations/pull_request/create.rb', line 6 def call() @template = [:template] raise ConfigFileDoesNotExistError unless Rubyhub::Configuration.exists? raise IncorrectTemplateError if !template || !data || data.empty? Rubyhub::PullRequest.new(data).create! end |