Class: Pod::Tdfire::BinaryStateStore

Inherits:
Object
  • Object
show all
Defined in:
lib/cocoapods-tdfire-binary/binary_state_store.rb

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.limit_platformObject

Returns the value of attribute limit_platform.



13
14
15
# File 'lib/cocoapods-tdfire-binary/binary_state_store.rb', line 13

def limit_platform
  @limit_platform
end

.printed_podsObject (readonly)

Returns the value of attribute printed_pods.



10
11
12
# File 'lib/cocoapods-tdfire-binary/binary_state_store.rb', line 10

def printed_pods
  @printed_pods
end

.use_frameworksObject

Returns the value of attribute use_frameworks.



11
12
13
# File 'lib/cocoapods-tdfire-binary/binary_state_store.rb', line 11

def use_frameworks
  @use_frameworks
end

.use_sourceObject

Returns the value of attribute use_source.



12
13
14
# File 'lib/cocoapods-tdfire-binary/binary_state_store.rb', line 12

def use_source
  @use_source
end

.use_source_podsObject

attr_accessor :unpublished_pods



9
10
11
# File 'lib/cocoapods-tdfire-binary/binary_state_store.rb', line 9

def use_source_pods
  @use_source_pods
end

Class Method Details

.force_use_binary?Boolean

Returns:

  • (Boolean)


42
43
44
# File 'lib/cocoapods-tdfire-binary/binary_state_store.rb', line 42

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

.force_use_source?Boolean

Returns:

  • (Boolean)


54
55
56
# File 'lib/cocoapods-tdfire-binary/binary_state_store.rb', line 54

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

.real_use_source_podsObject



22
23
24
# File 'lib/cocoapods-tdfire-binary/binary_state_store.rb', line 22

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

.set_force_use_binaryObject



46
47
48
# File 'lib/cocoapods-tdfire-binary/binary_state_store.rb', line 46

def self.set_force_use_binary
  ENV[FORCE_USE_BINARY_KEY] = USE_SURE_VALUE
end

.set_third_party_use_binaryObject



58
59
60
# File 'lib/cocoapods-tdfire-binary/binary_state_store.rb', line 58

def self.set_third_party_use_binary
  ENV[THIRD_PARTY_USE_BINARY_KEY] = USE_SURE_VALUE
end

.set_use_binaryObject



38
39
40
# File 'lib/cocoapods-tdfire-binary/binary_state_store.rb', line 38

def self.set_use_binary
  ENV[USE_BINARY_KEY] = USE_SURE_VALUE
end

.third_party_use_binary?Boolean

Returns:

  • (Boolean)


62
63
64
# File 'lib/cocoapods-tdfire-binary/binary_state_store.rb', line 62

def self.third_party_use_binary?
  ENV[THIRD_PARTY_USE_BINARY_KEY] == USE_SURE_VALUE
end

.unpublished_podsObject



26
27
28
# File 'lib/cocoapods-tdfire-binary/binary_state_store.rb', line 26

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

.unpublished_pods=(pods) ⇒ Object



30
31
32
# File 'lib/cocoapods-tdfire-binary/binary_state_store.rb', line 30

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

.unset_force_use_binaryObject



50
51
52
# File 'lib/cocoapods-tdfire-binary/binary_state_store.rb', line 50

def self.unset_force_use_binary
  ENV[FORCE_USE_BINARY_KEY] = '0'
end

.use_binary?Boolean

Returns:

  • (Boolean)


34
35
36
# File 'lib/cocoapods-tdfire-binary/binary_state_store.rb', line 34

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