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

#jugsObject

Returns the value of attribute jugs.



13
14
15
# File 'lib/juggle.rb', line 13

def jugs
  @jugs
end

#rootObject

Returns the value of attribute root.



13
14
15
# File 'lib/juggle.rb', line 13

def root
  @root
end

#settingsObject

Returns the value of attribute settings.



13
14
15
# File 'lib/juggle.rb', line 13

def settings
  @settings
end

Class Method Details

.versionObject



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

#compilerObject



39
40
41
# File 'lib/juggle.rb', line 39

def compiler
  @compiler ||= Closure::Compiler.new
end

#default_settingsObject



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_pathObject



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