Class: Pod::X::Sandbox::Template
- Inherits:
-
Sandbox
- Object
- Sandbox
- Pod::X::Sandbox::Template
- Includes:
- Protocol
- Defined in:
- lib/cocoapods-x/extension/sandbox/template.rb
Instance Method Summary collapse
- #configure ⇒ Object
-
#initialize(url) ⇒ Template
constructor
A new instance of Template.
- #install! ⇒ Object
- #ios_template ⇒ Object
- #pods_file ⇒ Object
- #source_file ⇒ Object
- #update! ⇒ Object
- #xcbuild ⇒ Object
Constructor Details
#initialize(url) ⇒ Template
Returns a new instance of Template.
10 11 12 |
# File 'lib/cocoapods-x/extension/sandbox/template.rb', line 10 def initialize url super File.join(url, '.template') end |
Instance Method Details
#configure ⇒ Object
41 42 43 |
# File 'lib/cocoapods-x/extension/sandbox/template.rb', line 41 def configure root + 'configure' end |
#install! ⇒ Object
14 15 16 17 18 |
# File 'lib/cocoapods-x/extension/sandbox/template.rb', line 14 def install! unless verify_files update! end end |
#ios_template ⇒ Object
33 34 35 |
# File 'lib/cocoapods-x/extension/sandbox/template.rb', line 33 def ios_template root + 'Projects/ios' end |
#pods_file ⇒ Object
29 30 31 |
# File 'lib/cocoapods-x/extension/sandbox/template.rb', line 29 def pods_file root + 'Projects/podfile/pods' end |
#source_file ⇒ Object
25 26 27 |
# File 'lib/cocoapods-x/extension/sandbox/template.rb', line 25 def source_file root + 'Projects/podfile/sources' end |
#update! ⇒ Object
20 21 22 23 |
# File 'lib/cocoapods-x/extension/sandbox/template.rb', line 20 def update! rm! ['-rf', root] clone_template! root end |
#xcbuild ⇒ Object
37 38 39 |
# File 'lib/cocoapods-x/extension/sandbox/template.rb', line 37 def xcbuild root + 'Projects/xcbuild' end |