Class: Prow::Paths

Inherits:
Struct
  • Object
show all
Defined in:
lib/prow/paths.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#compile_pathObject

Returns the value of attribute compile_path

Returns:

  • (Object)

    the current value of compile_path



2
3
4
# File 'lib/prow/paths.rb', line 2

def compile_path
  @compile_path
end

#source_pathObject

Returns the value of attribute source_path

Returns:

  • (Object)

    the current value of source_path



2
3
4
# File 'lib/prow/paths.rb', line 2

def source_path
  @source_path
end

Instance Method Details

#compileObject



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_configObject



15
16
17
# File 'lib/prow/paths.rb', line 15

def pages_config
  config + "/pages.json"
end

#sourceObject



3
4
5
# File 'lib/prow/paths.rb', line 3

def source
  source_path || `pwd`.chomp
end

#stylesheetsObject



19
20
21
# File 'lib/prow/paths.rb', line 19

def stylesheets
  composite_path(compile, "/stylesheets")
end