class Tenma::Prepare::Options

Attributes

raw[R]

Public Class Methods

new(opts) click to toggle source
# File lib/tenma/prepare/options.rb, line 8
def initialize(opts)
  @raw = Hashie::Mash.new(opts.map { |k, v| [k.gsub(/-/, "_"), v]  }.to_h)
end

Public Instance Methods

create_kpt_issue?() click to toggle source
# File lib/tenma/prepare/options.rb, line 12
def create_kpt_issue?
  return !!raw.kpt_issue
end
create_release_branch?() click to toggle source
# File lib/tenma/prepare/options.rb, line 20
def create_release_branch?
  return !!raw.release_branch
end
create_release_issue?() click to toggle source
# File lib/tenma/prepare/options.rb, line 16
def create_release_issue?
  return !!raw.release_issue
end
create_release_pullreqs?() click to toggle source
# File lib/tenma/prepare/options.rb, line 24
def create_release_pullreqs?
  return !!raw.release_pullreqs
end
hotfix?() click to toggle source
# File lib/tenma/prepare/options.rb, line 28
def hotfix?
  raw.version.split(".")[2] != "0"
end