Sha256: 8d170cb285b02c2793cbba7d4bd44e0a86281cc4649f52c8b101184ef4c7cf1b

Contents?: true

Size: 412 Bytes

Versions: 9

Compression:

Stored size: 412 Bytes

Contents

require "handcuffs/errors/configuration_block_missing_error"

module Handcuffs
  mattr_accessor :config

  def self.configure
    raise ConfigurationBlockMissingError unless block_given?
    @@config = Configurator.new
    yield @@config
  end

  class Configurator
    attr_accessor :phases
    attr_accessor :default_phase

    def initialize
      @phases = []
      @default_phase = nil
    end

  end

end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
handcuffs-2.0.0 lib/handcuffs/configuration.rb
handcuffs-1.4.1 lib/handcuffs/configuration.rb
handcuffs-1.4.0 lib/handcuffs/configuration.rb
handcuffs-1.3.0 lib/handcuffs/configuration.rb
handcuffs-1.2.0 lib/handcuffs/configuration.rb
handcuffs-1.1.1 lib/handcuffs/configuration.rb
handcuffs-1.1.0 lib/handcuffs/configuration.rb
handcuffs-1.0.2 lib/handcuffs/configuration.rb
handcuffs-1.0.1 lib/handcuffs/configuration.rb