Sha256: 1c372ccaa305c7169e2ccadd5fd1f0411c9339c0d822eec7c0fa7483e777971f

Contents?: true

Size: 416 Bytes

Versions: 1

Compression:

Stored size: 416 Bytes

Contents

require 'ostruct'
require 'albacore/support/openstruct'

module Configuration
  module SQLCmd
    @sqlcmdconfig = OpenStruct.new.extend(OpenStructToHash)

    def self.sqlcmdconfig
      @sqlcmdconfig
    end

    def sqlcmd
      config = SQLCmd.sqlcmdconfig
      yield(config) if block_given?
      config
    end
  end
end

class Albacore::Configuration
  include Configuration::SQLCmd
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
albacore-0.2.0.preview1 lib/albacore/config/sqlcmdconfig.rb