class Gem::Tasks::Task

def bundle(command,*arguments)

Other tags:
    Api: - semipublic

Returns:
  • (Boolean) -

Parameters:
  • arguments (Array) --
  • command (String) --
def bundle(command,*arguments)
  run 'bundler', command, *arguments
end

def gem(command,*arguments)

Other tags:
    Api: - semipublic

Returns:
  • (Boolean) -

Parameters:
  • arguments (Array) --
  • command (String) --
def gem(command,*arguments)
  if defined?(Bundler)
    Bundler.with_original_env do
      run 'gem', command, *arguments
    end
  else
    run 'gem', command, *arguments
  end
end

def gemspec_tasks(prefix)

Other tags:
    Api: - semipublic

Parameters:
  • prefix (Symbol, String) --
def gemspec_tasks(prefix)
  namespaced_tasks prefix, @project.gemspecs.keys
end

def initialize


Initializes the task.
def initialize
  @project = Project.directories[Dir.pwd]
end

def invoke(name)

Other tags:
    Since: - 0.2.2

Other tags:
    Api: - semipublic

Parameters:
  • name (Symbol, String) --
def invoke(name)
  Rake.application[name].invoke
end

def namespaced_tasks(prefix,subtasks)

Other tags:
    Api: - semipublic

Parameters:
  • subtasks (Array) --
  • prefix (String) --
def namespaced_tasks(prefix,subtasks)
  task prefix => subtasks.map { |subtask| "#{prefix}:#{subtask}" }
end

def run(command,*arguments)

Other tags:
    Api: - semipublic

Returns:
  • (Boolean) -

Parameters:
  • arguments (Array) --
  • command (String) --
def run(command,*arguments)
  show_command = [command, *arguments].join(' ')
  debug show_command
  unless system(command,*arguments)
    error "Command failed: #{show_command}"
    abort
  end
  return true
end

def task?(name)

Other tags:
    Api: - semipublic

Returns:
  • (Boolean) -

Parameters:
  • name (Symbol, String) --
def task?(name)
  Rake::Task.task_defined?(name)
end