class Gem::Tasks::Task
def self.task_name
- Api: - public
Returns:
-
(String)
-
def self.task_name @task_name ||= name.split('::').last.downcase end
def bundle(command,*arguments)
- Api: - semipublic
Returns:
-
(Boolean)
-
Parameters:
-
arguments
(Array
) -- -
command
(String
) --
def bundle(command,*arguments) run 'bundler', command, *arguments end
def gem(command,*arguments)
- Api: - semipublic
Returns:
-
(Boolean)
-
Parameters:
-
command
(Array
) -- -
command
(String
) --
def gem(command,*arguments) run 'gem', command, *arguments end
def gemspec_tasks(name)
- Api: - semipublic
Parameters:
-
name
(Symbol, String
) --
def gemspec_tasks(name) multi_task name, @project.gemspecs.keys end
def initialize
Initializes the task.
def initialize @project = Project.directories[Dir.pwd] end
def multi_task(prefix,names)
- Api: - semipublic
Parameters:
-
names
(Array
) -- -
namespace
(String
) --
def multi_task(prefix,names) task prefix => names.map { |name| "#{prefix}:#{name}" } end
def run(command,*arguments)
- 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)
- Api: - semipublic
Returns:
-
(Boolean)
-
Parameters:
-
name
(Symbol, String
) --
def task?(name) Rake::Task.task_defined?(name) end