Sha256: eb4c322900628cb3336f66b89bac2f0173f9ab80826b2a32ba5b4bda27634c7b

Contents?: true

Size: 1.29 KB

Versions: 20

Compression:

Stored size: 1.29 KB

Contents

module Xcake
  # This class repesents configurations
  # in a xcode project. This is an abstraction
  # of Schemes and Build Configurations.
  #
  # This forms part of the DSL and is usally
  # stored in files named `Cakefile`.
  #
  # It holds the build settings and defines
  # how many schemes are created for each
  # target.
  #
  class Configuration

    include Visitable

    # @return [String>] the name of the configuration
    #
    attr_accessor :name

    # the settings for the configuration
    # this is what is used for the build settings
    # for the build configuration.
    #
    # @return [Hash<String, String>] the settings for the configuration
    #
    attr_accessor :settings

    # @param    [String] name
    #           the name of the configuration.
    #           This is used for the build configuration name.
    #
    # @param    [Proc] block
    #           an optional block that configures the
    #           configuration through the DSL.
    #
    # @example  Creating a Configuration.
    #
    #           Configuration.new :debug do |c|
    #             c.settings["INFO_PLIST"] = "./myapp/info.plist"
    #           end
    #
    def initialize(name, &block)
      self.name = name.to_s
      self.settings = {}

      block.call(self) if block_given?
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
xcake-0.6.2 lib/xcake/configuration.rb
xcake-0.5.3 lib/xcake/configuration.rb
xcake-0.5.2 lib/xcake/configuration.rb
xcake-0.5.1 lib/xcake/configuration.rb
xcake-0.5.0 lib/xcake/configuration.rb
xcake-0.4.8 lib/xcake/configuration.rb
xcake-0.4.7 lib/xcake/configuration.rb
xcake-0.4.6 lib/xcake/configuration.rb
xcake-0.4.5 lib/xcake/configuration.rb
xcake-0.4.4 lib/xcake/configuration.rb
xcake-0.4.3 lib/xcake/configuration.rb
xcake-0.4.2 lib/xcake/configuration.rb
xcake-0.4.1 lib/xcake/configuration.rb
xcake-0.3.1 lib/xcake/configuration.rb
xcake-0.3.0 lib/xcake/configuration.rb
xcake-0.1.9 lib/xcake/configuration.rb
xcake-0.1.8 lib/xcake/configuration.rb
xcake-0.1.7 lib/xcake/configuration.rb
xcake-0.1.6 lib/xcake/configuration.rb
xcake-0.1.5 lib/xcake/configuration.rb