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