Sha256: 1020e6557cef907d7aaaf188db62202213aeb89db426d74c7d9920af29592e9d
Contents?: true
Size: 534 Bytes
Versions: 2
Compression:
Stored size: 534 Bytes
Contents
require "figs/application" require "figs/env" require "figs/figfile" module Figs extend self attr_writer :backend, :application def env application.env end def backend @backend ||= Figs::Application end def application(options = {}) @application ||= backend.new({:file => figfile, :stage => options[:stage]}) end def load(options = {}) application({:stage => options[:stage]}).load end private def figfile @figfile ||=YAML.load(ERB.new(File.read('Figfile')).result) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
figs-1.2.2 | lib/figs.rb |
figs-1.2.1 | lib/figs.rb |