Module: Pwrake

Defined in:
lib/pwrake/shell.rb,
lib/pwrake/timer.rb,
lib/pwrake/logger.rb,
lib/pwrake/master.rb,
lib/pwrake/option.rb,
lib/pwrake/counter.rb,
lib/pwrake/version.rb,
lib/pwrake/graphviz.rb,
lib/pwrake/profiler.rb,
lib/pwrake/file_utils.rb,
lib/pwrake/task_queue.rb,
lib/pwrake/application.rb,
lib/pwrake/report/stat.rb,
lib/pwrake/gfarm_feature.rb,
lib/pwrake/report/report.rb,
lib/pwrake/task_algorithm.rb,
lib/pwrake/report/parallelism.rb,
lib/pwrake/report/report_multi.rb,
lib/pwrake/locality_aware_queue.rb

Defined Under Namespace

Modules: FileUtils, GfarmPath, Log, Option, Parallelism, TaskAlgorithm Classes: Application, Counter, GfarmPostprocess, GfarmShell, Graphviz, LifoQueueArray, LocalityAwareQueue, LocalityConditionVariable, Logger, Master, PriorityQueueArray, Profiler, Report, ReportMulti, Shell, Stat, TaskConditionVariable, TaskQueue, Timer

Constant Summary collapse

LOCK =
Mutex.new
LOGGER =
Logger.new
START_TIME =
Time.now
VERSION =
"0.9.7"
InvocationChain =
Rake::InvocationChain
TaskArguments =
Rake::TaskArguments

Class Method Summary collapse

Class Method Details

.applicationObject



13
14
15
# File 'lib/pwrake/application.rb', line 13

def application
  @application ||= Application.new
end

.current_shellObject



3
4
5
# File 'lib/pwrake/master.rb', line 3

def current_shell
  Thread.current[:shell]
end

.current_shell=(a) ⇒ Object



7
8
9
10
# File 'lib/pwrake/master.rb', line 7

def current_shell=(a)
  Thread.current[:shell] = a
  Thread.current[:hint] = a.host
end