Class: Pod::Patcher

Inherits:
Object
  • Object
show all
Includes:
Pod
Defined in:
lib/cocoapods-vemars/services/patcher.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(podfile_dir, baseline, components_details, source, git_url, demo_tag) ⇒ Patcher

Returns a new instance of Patcher.



16
17
18
19
20
21
22
23
24
25
# File 'lib/cocoapods-vemars/services/patcher.rb', line 16

def initialize(podfile_dir, baseline, components_details, source, git_url,demo_tag)
  @podfile_dir = podfile_dir
  @template = PodfileTemplate.new(baseline, components_details, source)
  @components_details = components_details
  @git_url = git_url
  puts git_url
  @hasInjectedSource = false
  @hasInjectedVemarsPods = false
  @demo_tag = demo_tag
end

Instance Attribute Details

#podfile_dirObject (readonly)

Returns the value of attribute podfile_dir.



13
14
15
# File 'lib/cocoapods-vemars/services/patcher.rb', line 13

def podfile_dir
  @podfile_dir
end

#templateObject (readonly)

Returns the value of attribute template.



14
15
16
# File 'lib/cocoapods-vemars/services/patcher.rb', line 14

def template
  @template
end

Instance Method Details

#executeObject



27
28
29
30
31
# File 'lib/cocoapods-vemars/services/patcher.rb', line 27

def execute
  insert_plist
  plugin_demos
  patch_podfile
end