class Cp8Cli::Commands::Submit

Attributes

options[R]

Public Class Methods

new(options = {}) click to toggle source
# File lib/cp8_cli/commands/submit.rb, line 4
def initialize(options = {})
  @options = options
end

Public Instance Methods

run() click to toggle source
# File lib/cp8_cli/commands/submit.rb, line 8
def run
  branch.push
  branch.open_pr
end

Private Instance Methods

branch() click to toggle source
# File lib/cp8_cli/commands/submit.rb, line 17
def branch
  @_branch ||= Branch.current
end