Sha256: c21e4d06461d251e6b208c867b1fe7f4c1ec0e4f3dff8864fb2f53456d8eccaa
Contents?: true
Size: 624 Bytes
Versions: 2
Compression:
Stored size: 624 Bytes
Contents
require 'ns-options' require 'pathname' require 'sanford/logger' require 'sanford/runner' require 'sanford/template_source' module Sanford class Config include NsOptions::Proxy option :services_file, Pathname, :default => proc{ ENV['SANFORD_SERVICES_FILE'] } option :logger, :default => proc{ Sanford::NullLogger.new } attr_reader :template_source def initialize super @template_source = NullTemplateSource.new end def set_template_source(path, &block) @template_source = TemplateSource.new(path).tap{ |s| block.call(s) if block } end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sanford-0.10.1 | lib/sanford/config.rb |
sanford-0.10.0 | lib/sanford/config.rb |