class CreateGithubRelease::TaskBase


@api private
It holds the options and knows how to print, puts and error while respecting the ‘quiet` flag.
All tasks must inherit from this class.
Base class for tasks

def backtick_debug?

Other tags:
    Api: - private

Returns:
  • (Boolean) -
def backtick_debug?
  project.verbose?
end

def error(message)

Other tags:
    Api: - private

Returns:
  • (void) -

Parameters:
  • message (String) -- the message to write to stderr
def error(message)
  warn "ERROR: #{message}"
  exit 1
end

def initialize(project)

Other tags:
    Api: - private

Parameters:
  • project (CreateGithubRelease::Project) -- the project to create the release for
def initialize(project)
  raise ArgumentError, 'project must be a CreateGithubRelease::Project' unless
    project.is_a?(CreateGithubRelease::Project)
  @project = project
end

def print(*args)

Other tags:
    Api: - private

Returns:
  • (void) -

Parameters:
  • args (Array) -- the arguments to pass to `Kernel.print`
def print(*args)
  super unless project.quiet?
end

def puts(*args)

Other tags:
    Api: - private

Returns:
  • (void) -

Parameters:
  • args (Array) -- the arguments to pass to `Kernel.puts`
def puts(*args)
  super unless project.quiet?
end

def run

Other tags:
    Api: - private

Returns:
  • (void) -
def run
  raise NotImplementedError
end