Sha256: 5cfa5f6e3a3888dad4f53d06a3cdc3481848887efb3ac9097860f2293d110ad3

Contents?: true

Size: 1.13 KB

Versions: 1

Compression:

Stored size: 1.13 KB

Contents

# frozen_string_literal: true

require 'singleton'
require 'yaml'

require_relative './common'
require_relative './ric_disk_config'

module Storazzo
  module Storazzo
    #     This is a singleton class. You call me this way..
    #     You call me with:
    #
    #     Storazzo::RicDiskSampleConfig.instance()
    #
    # It loads a sample config in local gem etc/. Usuful for testing or if no other config is found..

    class RicDiskSampleConfig < Storazzo::RicDiskConfig
      # include Storazzo::Common

      # _sample_version
      def load
        deb("[RicDiskSampleConfig] Wheew 1! We're NOT destroying the world here. We're actually instancing a second Singleton which is a child of the mother, and this time doing things nicely and Rubily.")
        super(DefaultGemLocationForTests, verbose: false)
      end

      def load_sample_version
        deb white("[RicDiskSampleConfig] Wheew 2! We're NOT destroying the world here. We're actually instancing a second Singleton which is a child of the mother, and this time doing things nicely and Rubily.")
        super(DefaultGemLocationForTests, verbose: false)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
storazzo-0.6.1 lib/storazzo/ric_disk_sample_config.rb