Class: Calasmash::Plist

Inherits:
Object
  • Object
show all
Defined in:
lib/calasmash/plist.rb

Overview

Does some fun stuff with Xcode plists, calasmash needs to update the Xcode projects plist to trick the simulator into connecting to a sinatra server instead

Author:

  • alexfish

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(scheme) ⇒ Plist

Create a new plist instance

Parameters:

  • scheme (String)

    The scheme related to the plist



23
24
25
# File 'lib/calasmash/plist.rb', line 23

def initialize(scheme)
  @scheme = scheme
end

Instance Attribute Details

#schemeObject

Public: the Scheme the plist is related to



16
17
18
# File 'lib/calasmash/plist.rb', line 16

def scheme
  @scheme
end

Instance Method Details

#executeObject

Executes the plist tasks update and clear the old plists



30
31
32
33
34
35
36
# File 'lib/calasmash/plist.rb', line 30

def execute
  started
  update
  clear

  completed
end