Class: Prow::Paths
- Inherits:
-
Struct
- Object
- Struct
- Prow::Paths
- Defined in:
- lib/prow/paths.rb
Instance Attribute Summary collapse
-
#compile_path ⇒ Object
Returns the value of attribute compile_path.
-
#source_path ⇒ Object
Returns the value of attribute source_path.
Instance Method Summary collapse
- #compile ⇒ Object
- #composite_path(start_path, end_path) ⇒ Object
- #pages_config ⇒ Object
- #source ⇒ Object
- #stylesheets ⇒ Object
Instance Attribute Details
#compile_path ⇒ Object
Returns the value of attribute compile_path
2 3 4 |
# File 'lib/prow/paths.rb', line 2 def compile_path @compile_path end |
#source_path ⇒ Object
Returns the value of attribute source_path
2 3 4 |
# File 'lib/prow/paths.rb', line 2 def source_path @source_path end |
Instance Method Details
#compile ⇒ Object
7 8 9 |
# File 'lib/prow/paths.rb', line 7 def compile compile_path || source + "/public" end |
#composite_path(start_path, end_path) ⇒ Object
23 24 25 |
# File 'lib/prow/paths.rb', line 23 def composite_path(start_path, end_path) "#{start_path}/#{end_path}" end |
#pages_config ⇒ Object
15 16 17 |
# File 'lib/prow/paths.rb', line 15 def pages_config config + "/pages.json" end |
#source ⇒ Object
3 4 5 |
# File 'lib/prow/paths.rb', line 3 def source source_path || `pwd`.chomp end |
#stylesheets ⇒ Object
19 20 21 |
# File 'lib/prow/paths.rb', line 19 def stylesheets composite_path(compile, "/stylesheets") end |