Class: Pod::Config
- Inherits:
-
Object
- Object
- Pod::Config
- Defined in:
- lib/cocoapods/config.rb
Defined Under Namespace
Modules: Mixin
Instance Attribute Summary collapse
-
#clean ⇒ Object
(also: #clean?)
Returns the value of attribute clean.
-
#project_pods_root ⇒ Object
Returns the value of attribute project_pods_root.
-
#project_root ⇒ Object
Returns the value of attribute project_root.
-
#repos_dir ⇒ Object
Returns the value of attribute repos_dir.
-
#rootspec ⇒ Object
Returns the spec at the pat returned from
project_podfile. -
#silent ⇒ Object
(also: #silent?)
Returns the value of attribute silent.
-
#verbose ⇒ Object
(also: #verbose?)
Returns the value of attribute verbose.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
- #ios? ⇒ Boolean
- #osx? ⇒ Boolean
- #project_podfile ⇒ Object
Constructor Details
Instance Attribute Details
#clean ⇒ Object Also known as: clean?
Returns the value of attribute clean.
13 14 15 |
# File 'lib/cocoapods/config.rb', line 13 def clean @clean end |
#project_pods_root ⇒ Object
Returns the value of attribute project_pods_root.
13 14 15 |
# File 'lib/cocoapods/config.rb', line 13 def project_pods_root @project_pods_root end |
#project_root ⇒ Object
Returns the value of attribute project_root.
13 14 15 |
# File 'lib/cocoapods/config.rb', line 13 def project_root @project_root end |
#repos_dir ⇒ Object
Returns the value of attribute repos_dir.
13 14 15 |
# File 'lib/cocoapods/config.rb', line 13 def repos_dir @repos_dir end |
#rootspec ⇒ Object
Returns the spec at the pat returned from project_podfile.
44 45 46 |
# File 'lib/cocoapods/config.rb', line 44 def rootspec @rootspec end |
#silent ⇒ Object Also known as: silent?
Returns the value of attribute silent.
13 14 15 |
# File 'lib/cocoapods/config.rb', line 13 def silent @silent end |
#verbose ⇒ Object Also known as: verbose?
Returns the value of attribute verbose.
13 14 15 |
# File 'lib/cocoapods/config.rb', line 13 def verbose @verbose end |
Class Method Details
.instance ⇒ Object
5 6 7 |
# File 'lib/cocoapods/config.rb', line 5 def self.instance @instance ||= new end |
.instance=(instance) ⇒ Object
9 10 11 |
# File 'lib/cocoapods/config.rb', line 9 def self.instance=(instance) @instance = instance end |
Instance Method Details
#ios? ⇒ Boolean
57 58 59 |
# File 'lib/cocoapods/config.rb', line 57 def ios? rootspec.platform == :ios if rootspec end |
#osx? ⇒ Boolean
61 62 63 |
# File 'lib/cocoapods/config.rb', line 61 def osx? rootspec.platform == :osx if rootspec end |
#project_podfile ⇒ Object
33 34 35 36 37 38 39 40 41 |
# File 'lib/cocoapods/config.rb', line 33 def project_podfile unless @project_podfile @project_podfile = project_root + 'Podfile' unless @project_podfile.exist? @project_podfile = project_root.glob('*.podspec').first end end @project_podfile end |