Module: GitHubPr::Runner

Defined in:
lib/github-pr/runner.rb

Class Method Summary collapse

Class Method Details

.run(opts) ⇒ Object



4
5
6
7
8
9
10
# File 'lib/github-pr/runner.rb', line 4

def self.run(opts)
  options = CLI.parse(opts)
  puts options

  poster = Poster.new(Token.create(token_file_path:File.expand_path('~/.config/gh-pr-token'), direct_token: options[:token]))
  poster.post(options)
end