Sha256: c02e4ff3713cdd9bbe2d838b8c7c0778c3ef8e1fc88c7a5cf7578daa7744a80c

Contents?: true

Size: 543 Bytes

Versions: 1

Compression:

Stored size: 543 Bytes

Contents

# require 'calamum'
require 'mixlib/config'

# Provides a class-based configuration object.
# See https://github.com/opscode/mixlib-config
class Calamum::Config
  extend Mixlib::Config

  def self.inspect
    configuration.inspect
  end

  def self.apply(config)
    merge!(config)

    self.doc_path = File.join(config[:path], 'docs')
    self.tpl_path = File.join(File.dirname(__FILE__), 'templates', config[:template])
    raise "Unknown template #{config[:template]}" unless Calamum::VALID_TEMPLATES.include?(config[:template])
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
calamum-1.2.0 lib/calamum/config.rb