Class: Pod::DeployTransformer
- Inherits:
-
Object
- Object
- Pod::DeployTransformer
- Defined in:
- lib/cocoapods-deploy/deploy_transformer.rb
Instance Attribute Summary collapse
-
#lockfile ⇒ Object
Returns the value of attribute lockfile.
-
#sandbox ⇒ Object
Returns the value of attribute sandbox.
Instance Method Summary collapse
-
#initialize(lockfile, sandbox) ⇒ DeployTransformer
constructor
A new instance of DeployTransformer.
- #transform_dependency_name(name) ⇒ Object
- #transform_podfile(podfile) ⇒ Object
Constructor Details
#initialize(lockfile, sandbox) ⇒ DeployTransformer
7 8 9 10 |
# File 'lib/cocoapods-deploy/deploy_transformer.rb', line 7 def initialize(lockfile, sandbox) @lockfile = lockfile @sandbox = sandbox end |
Instance Attribute Details
#lockfile ⇒ Object
Returns the value of attribute lockfile.
4 5 6 |
# File 'lib/cocoapods-deploy/deploy_transformer.rb', line 4 def lockfile @lockfile end |
#sandbox ⇒ Object
Returns the value of attribute sandbox.
5 6 7 |
# File 'lib/cocoapods-deploy/deploy_transformer.rb', line 5 def sandbox @sandbox end |
Instance Method Details
#transform_dependency_name(name) ⇒ Object
19 20 21 22 |
# File 'lib/cocoapods-deploy/deploy_transformer.rb', line 19 def transform_dependency_name(name) dependency_hash = transform_dependency(name) parse_dependency(dependency_hash) end |
#transform_podfile(podfile) ⇒ Object
12 13 14 15 16 17 |
# File 'lib/cocoapods-deploy/deploy_transformer.rb', line 12 def transform_podfile(podfile) internal_hash = podfile.to_hash new_hash = transform_internal_hash(internal_hash) Podfile.from_hash(new_hash, podfile.defined_in_file) end |