Sha256: 8c39c9888e117d34a32f88a2c6ed0be5bde30a1c683c19d03252f7a3c6ca93bd

Contents?: true

Size: 358 Bytes

Versions: 2

Compression:

Stored size: 358 Bytes

Contents

require "ostruct"
require "albacore/support/openstruct"

module Configuration
  module SQLCmd
    include Albacore::Configuration

    def self.sqlcmdconfig
      @config ||= OpenStruct.new.extend(OpenStructToHash).extend(SQLCmd)
    end

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
albacore-1.0.0 lib/albacore/config/sqlcmdconfig.rb
albacore-1.0.0.rc.3 lib/albacore/config/sqlcmdconfig.rb