Module: R::Env
- Defined in:
- lib/rub/r/env.rb
Overview
Environment Information
Class Attribute Summary collapse
-
.cmd_dir ⇒ Pathname
readonly
The directory from which rub was executed.
-
.global_cache ⇒ Pathname
readonly
The global cache directory.
Class Method Summary collapse
-
.out_dir ⇒ Pathname
The build output directory.
-
.project_cache ⇒ Pathname
The project cache directory.
-
.src_dir ⇒ Pathname
The directory from which rub was executed.
Class Attribute Details
.cmd_dir ⇒ Pathname (readonly)
Returns The directory from which rub was executed.
31 |
# File 'lib/rub/r/env.rb', line 31 cattr_accessor :cmd_dir |
.global_cache ⇒ Pathname (readonly)
Returns The global cache directory.
35 |
# File 'lib/rub/r/env.rb', line 35 cattr_reader :global_cache |
Class Method Details
.out_dir ⇒ Pathname
Returns 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_cache ⇒ Pathname
Returns The project cache directory.
68 69 70 |
# File 'lib/rub/r/env.rb', line 68 def self.project_cache out_dir + "cache/" end |
.src_dir ⇒ Pathname
Returns 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 |