Class: Wheelbarrow::CLI

Inherits:
Thor
  • Object
show all
Defined in:
lib/wheelbarrow/cli.rb

Instance Method Summary collapse

Instance Method Details

#pull_requestObject



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: options[:title],
             description: options[:description],
             target_branch: options[:target_branch] }

    pr_response = Bucketeer.instance.send_pull_request! args
    puts pretty_pr_status(pr_response)
  end
rescue => e
  puts e.message
end

#versionObject



6
7
8
# File 'lib/wheelbarrow/cli.rb', line 6

def version
  puts Wheelbarrow::VERSION
end