Module: Juggle
- Extended by:
- Juggle
- Included in:
- Juggle
- Defined in:
- lib/juggle.rb,
lib/juggle/jug.rb,
lib/juggle/context.rb,
lib/juggle/sinatra.rb,
lib/juggle/version.rb,
lib/juggle/ops/base.rb,
lib/juggle/ops/file.rb,
lib/juggle/rake_task.rb,
lib/juggle/ops/coffee.rb,
lib/juggle/ops/remote.rb,
lib/juggle/ops/closure.rb,
lib/juggle/ops/template.rb,
lib/juggle/sinatra/helpers.rb
Defined Under Namespace
Modules: Context, Op, Sinatra
Classes: Jug, RakeTask
Constant Summary
collapse
- VERSION =
'0.0.2'
Instance Attribute Summary collapse
Class Method Summary
collapse
Instance Method Summary
collapse
Instance Attribute Details
#jugs ⇒ Object
Returns the value of attribute jugs.
13
14
15
|
# File 'lib/juggle.rb', line 13
def jugs
@jugs
end
|
#root ⇒ Object
Returns the value of attribute root.
13
14
15
|
# File 'lib/juggle.rb', line 13
def root
@root
end
|
#settings ⇒ Object
Returns the value of attribute settings.
13
14
15
|
# File 'lib/juggle.rb', line 13
def settings
@settings
end
|
Class Method Details
.version ⇒ Object
5
6
7
|
# File 'lib/juggle/version.rb', line 5
def self.version
VERSION
end
|
Instance Method Details
#clear_jugs! ⇒ Object
31
32
33
|
# File 'lib/juggle.rb', line 31
def clear_jugs!
self.jugs = {}
end
|
#compiler ⇒ Object
39
40
41
|
# File 'lib/juggle.rb', line 39
def compiler
@compiler ||= Closure::Compiler.new
end
|
#default_settings ⇒ Object
15
16
17
18
19
20
21
|
# File 'lib/juggle.rb', line 15
def default_settings
{
:jugfile => './Jugfile',
:templates => './app/templates',
:indent => 2
}
end
|
#jugfile_path ⇒ Object
27
28
29
|
# File 'lib/juggle.rb', line 27
def jugfile_path
File.expand_path(File.join(root, settings[:jugfile]))
end
|
#load_jugfile! ⇒ Object
35
36
37
|
# File 'lib/juggle.rb', line 35
def load_jugfile!
load jugfile_path
end
|