Sha256: dabc73ce5dc63f6853ab3fa491eb40c2655ecbc2bef97a547ac638a3b68b65c0

Contents?: true

Size: 904 Bytes

Versions: 4

Compression:

Stored size: 904 Bytes

Contents

module Ambient
  module DSL
    class TargetScope
      attr_reader :application,
                  :name

      def initialize(application, name)
        @application = application
        @name = name
      end

      def configure(&block)
        instance_eval(&block)
      end

      def option(option_name, value)
        target_name = @name
        application.configure { set_option(option_name, value, target: target_name) }
      end

      def scheme(name, parent: nil, &block)
        SchemeScope.new(application, self, name, parent).configure(&block)
      end

      def capability(capability_name)
        target_name = @name
        application.configure { set_capability(target_name, capability_name) }
      end

      def development_team(team_name)
        target_name = @name
        application.configure { set_development_team(target_name, team_name) }
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ambient-xcode-0.8.1 lib/ambient/dsl/target_scope.rb
ambient-xcode-0.8.0 lib/ambient/dsl/target_scope.rb
ambient-xcode-0.7.1 lib/ambient/dsl/target_scope.rb
ambient-xcode-0.7.0 lib/ambient/dsl/target_scope.rb