Class: Pod::DeployTransformer

Inherits:
Object
  • Object
show all
Defined in:
lib/cocoapods-deploy/deploy_transformer.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#lockfileObject

Returns the value of attribute lockfile.



4
5
6
# File 'lib/cocoapods-deploy/deploy_transformer.rb', line 4

def lockfile
  @lockfile
end

#sandboxObject

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