Module: Frontsau
- Defined in:
- lib/frontsau.rb,
lib/frontsau/version.rb,
lib/frontsau/thor_app.rb,
lib/frontsau/assets/rack.rb,
lib/frontsau/assets/watcher.rb,
lib/frontsau/assets/sprockets.rb,
lib/frontsau/assets/url_rewriter.rb,
lib/frontsau/assets/static_assets_compiler.rb
Defined Under Namespace
Modules: Assets
Classes: StaticAssetsCompiler, ThorApp
Constant Summary
collapse
- VERSION =
"0.0.3"
Class Method Summary
collapse
Class Method Details
.asset_path(path) ⇒ Object
60
61
62
|
# File 'lib/frontsau.rb', line 60
def self.asset_path path
assets_path+path
end
|
.assets_path ⇒ Object
56
57
58
|
# File 'lib/frontsau.rb', line 56
def self.assets_path
config[:assets][:path]
end
|
.init(root_path) ⇒ Object
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
# File 'lib/frontsau.rb', line 34
def self.init root_path
self.root_path = root_path
config_file = File.expand_path '.frontsau'
raise "No .frontsau found in #{root_path}!" unless File.exists? config_file
raw_config = YAML.load File.read config_file
self.config = ActiveSupport::HashWithIndifferentAccess.new raw_config['frontsau']
self.sprockets = Frontsau::Assets::Sprockets.new
sprockets.cache = Sprockets::Cache::FileStore.new(config[:assets][:cache])
end
|