Module: R::Env

Defined in:
lib/rub/r/env.rb

Overview

Environment Information

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.cmd_dirPathname (readonly)

Returns The directory from which rub was executed.

Returns:

  • (Pathname)

    The directory from which rub was executed.



31
# File 'lib/rub/r/env.rb', line 31

cattr_accessor :cmd_dir

.global_cachePathname (readonly)

Returns The global cache directory.

Returns:

  • (Pathname)

    The global cache directory.



35
# File 'lib/rub/r/env.rb', line 35

cattr_reader :global_cache

Class Method Details

.out_dirPathname

Returns The build output directory.

Returns:

  • (Pathname)

    The build output directory.



61
62
63
# File 'lib/rub/r/env.rb', line 61

def self.out_dir
	@out_dir ||= src_dir + 'build/'
end

.project_cachePathname

Returns The project cache directory.

Returns:

  • (Pathname)

    The project cache directory.



68
69
70
# File 'lib/rub/r/env.rb', line 68

def self.project_cache
	out_dir + "cache/"
end

.src_dirPathname

Returns The directory from which rub was executed.

Returns:

  • (Pathname)

    The directory from which rub was executed.



56
57
58
# File 'lib/rub/r/env.rb', line 56

def self.src_dir
	@src_dir ||= find_src_dir
end