Class: Playwire::Plist
- Inherits:
-
Object
- Object
- Playwire::Plist
- Defined in:
- lib/playwire/plist.rb
Class Method Summary collapse
Class Method Details
.read(path) ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/playwire/plist.rb', line 7 def self.read(path) begin return Xcodeproj::Plist.read_from_path(path) rescue return nil end end |
.write(data, path) ⇒ Object
15 16 17 18 19 20 21 22 23 |
# File 'lib/playwire/plist.rb', line 15 def self.write(data, path) begin Xcodeproj::Plist.write_to_path(data, path) rescue Xcodeproj::Informative => error Playwire::Logger.red(error.) rescue Playwire::Logger.error("Could not write the 'Info.plist' file at path #{path}.") end end |