Class: Pod::Extension::Sandbox::Project
- Inherits:
-
Sandbox
- Object
- Sandbox
- Pod::Extension::Sandbox::Project
- Includes:
- Protocol
- Defined in:
- lib/cocoapods-extension/sandbox/project.rb
Instance Attribute Summary collapse
-
#conf ⇒ Object
readonly
Returns the value of attribute conf.
-
#repos ⇒ Object
readonly
Returns the value of attribute repos.
Instance Method Summary collapse
-
#initialize(conf) ⇒ Project
constructor
A new instance of Project.
- #install! ⇒ Object
- #pod_file ⇒ Object
- #update! ⇒ Object
Constructor Details
Instance Attribute Details
#conf ⇒ Object (readonly)
Returns the value of attribute conf.
11 12 13 |
# File 'lib/cocoapods-extension/sandbox/project.rb', line 11 def conf @conf end |
#repos ⇒ Object (readonly)
Returns the value of attribute repos.
11 12 13 |
# File 'lib/cocoapods-extension/sandbox/project.rb', line 11 def repos @repos end |
Instance Method Details
#install! ⇒ Object
19 20 21 22 23 24 25 26 |
# File 'lib/cocoapods-extension/sandbox/project.rb', line 19 def install! @conf.sync @conf.save! unless pod_file.exist? cp! [Pod::Extension::Sandbox::workspace::template::pod_file, pod_file] end end |
#pod_file ⇒ Object
32 33 34 |
# File 'lib/cocoapods-extension/sandbox/project.rb', line 32 def pod_file root + 'pods' end |
#update! ⇒ Object
28 29 30 |
# File 'lib/cocoapods-extension/sandbox/project.rb', line 28 def update! install! end |