Sha256: 0bac2ff7ac7eee7c17e0b3e144e2b596b3360d450965918e759e184b007843c1

Contents?: true

Size: 1.16 KB

Versions: 2

Compression:

Stored size: 1.16 KB

Contents

module  Tdfire
	class BinaryStateStore
		public

		class << self
			# attr_accessor :unpublished_pods
			attr_accessor :use_source_pods
			attr_reader :printed_pods
			attr_accessor :use_frameworks
		end
		# @unpublished_pods = []
		@use_source_pods = []
		@printed_pods = []
		@use_frameworks = false

		def self.real_use_source_pods
			(@use_source_pods + unpublished_pods).uniq	
		end

		def self.unpublished_pods
			String(ENV[UNPBLISHED_PODS]).split('|').uniq
		end

		def self.unpublished_pods=(pods)
			ENV[UNPBLISHED_PODS] = Array(pods).uniq.join('|')
		end

		def self.use_binary?
			ENV[USE_BINARY_KEY] == USE_SURE_VALUE
		end

		def self.set_use_binary
			ENV[USE_BINARY_KEY] = USE_SURE_VALUE
		end

		def self.force_use_binary?
			ENV[FORCE_USE_BINARY_KEY] == USE_SURE_VALUE
		end

		def self.set_force_use_binary
			ENV[FORCE_USE_BINARY_KEY] = USE_SURE_VALUE
		end

		def self.force_use_source?
			ENV[FORCE_USE_SOURCE_KEY] == USE_SURE_VALUE
		end

		private

		UNPBLISHED_PODS = "tdfire_unpublished_pods"
		FORCE_USE_SOURCE_KEY = 'tdfire_force_use_source'
		FORCE_USE_BINARY_KEY = 'tdfire_force_use_binary'
		USE_BINARY_KEY = 'tdfire_use_binary'
		USE_SURE_VALUE = '1'
	end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
cocoapods-tdfire-binary-0.1.10 lib/cocoapods-tdfire-binary/binary_state_store.rb
cocoapods-tdfire-binary-0.1.9 lib/cocoapods-tdfire-binary/binary_state_store.rb