Class: Configuration::Structure

Inherits:
Object
  • Object
show all
Defined in:
lib/bujo/configuration/structure.rb

Class Method Summary collapse

Class Method Details

.create_source_directory(directory_relative_path) ⇒ Object



48
49
50
# File 'lib/bujo/configuration/structure.rb', line 48

def self.create_source_directory(directory_relative_path)
  FileUtils.mkdir_p(File.join(sources_path, directory_relative_path))
end

.global_asset_path(relative_path) ⇒ Object



11
12
13
# File 'lib/bujo/configuration/structure.rb', line 11

def self.global_asset_path(relative_path)
  File.join(global_assets_path, relative_path)
end

.global_plugin_asset_path(relative_path) ⇒ Object



15
16
17
# File 'lib/bujo/configuration/structure.rb', line 15

def self.global_plugin_asset_path(relative_path)
  global_asset_path(File.join("bujo/plugins", relative_path))
end

.global_plugin_path(plugin_relative_path) ⇒ Object

Global



7
8
9
# File 'lib/bujo/configuration/structure.rb', line 7

def self.global_plugin_path(plugin_relative_path)
  File.join(global_plugins_path, plugin_relative_path)
end

.global_stylesheet_path(relative_path) ⇒ Object



19
20
21
# File 'lib/bujo/configuration/structure.rb', line 19

def self.global_stylesheet_path(relative_path)
  global_asset_path(File.join("bujo/stylesheets", relative_path))
end

.local_path(relative_path) ⇒ Object

Local



24
25
26
# File 'lib/bujo/configuration/structure.rb', line 24

def self.local_path(relative_path)
  File.join(local_home, relative_path)
end

.local_plugin_path(plugin_relative_path) ⇒ Object



44
45
46
# File 'lib/bujo/configuration/structure.rb', line 44

def self.local_plugin_path(plugin_relative_path)
  File.join(local_plugins_path, plugin_relative_path)
end

.source_path(relative_path) ⇒ Object



32
33
34
# File 'lib/bujo/configuration/structure.rb', line 32

def self.source_path(relative_path)
  File.join(sources_path, relative_path)
end

.sources_pathObject



28
29
30
# File 'lib/bujo/configuration/structure.rb', line 28

def self.sources_path
  local_path("src")
end

.target_path(relative_path) ⇒ Object



40
41
42
# File 'lib/bujo/configuration/structure.rb', line 40

def self.target_path(relative_path)
  File.join(targets_path, relative_path)
end

.targets_pathObject



36
37
38
# File 'lib/bujo/configuration/structure.rb', line 36

def self.targets_path
  local_path("target")
end