class Tenma::Prepare::Command
Public Class Methods
new(cli)
click to toggle source
# File lib/tenma/prepare/command.rb, line 10 def initialize(cli) @cli = cli end
Public Instance Methods
execute()
click to toggle source
# File lib/tenma/prepare/command.rb, line 14 def execute @context = Tenma::Prepare::Context.new.load!(@cli.options) if @context.options.create_kpt_issue? Tenma::Prepare::KptIssue.new(@context).create end if @context.options.create_release_issue? Tenma::Prepare::ReleaseIssue.new(@context).create end if @context.options.create_release_branch? Tenma::Prepare::ReleaseBranch.new(@context).create end if @context.options.create_release_pullreqs? Tenma::Prepare::ReleasePullreqs.new(@context).create end end