module Figs
Module for anything Figs
related.
Constants
- VERSION
Attributes
application[W]
backend[W]
Public Instance Methods
application(options = {})
click to toggle source
# File lib/figs.rb, line 19 def application(options = {}) @application ||= backend.new({:file => figsfile, :stage => options[:stage]}) end
backend()
click to toggle source
# File lib/figs.rb, line 15 def backend @backend ||= Figs::Application end
env()
click to toggle source
# File lib/figs.rb, line 11 def env application.env end
load(options = {})
click to toggle source
# File lib/figs.rb, line 23 def load(options = {}) application({:stage => options[:stage]}).load end
Private Instance Methods
figsfile()
click to toggle source
# File lib/figs.rb, line 29 def figsfile @figsfile ||=YAML.load(ERB.new(File.read('Figsfile')).result) end