Module: ZergXcode
- Defined in:
- lib/zerg_xcode/plugins/core/core.rb,
lib/zerg_xcode.rb,
lib/zerg_xcode/shortcuts.rb
Overview
:nodoc:
Defined Under Namespace
Modules: Archiver, Encoder, Lexer, Objects, Parser, Paths, Plugins Classes: XcodeObject
Class Method Summary collapse
-
.dump(project, path) ⇒ Object
Dumps an Xcode project to the filesystem.
-
.load(path) ⇒ Object
Reads an Xcode project from the filesystem.
-
.plugin(plugin_name) ⇒ Object
Instantiate a plug-in.
Class Method Details
.dump(project, path) ⇒ Object
Dumps an Xcode project to the filesystem.
12 13 14 15 16 |
# File 'lib/zerg_xcode/shortcuts.rb', line 12 def self.dump(project, path) file = ZergXcode::Paths.project_file_at path pbx_contents = Archiver.archive project File.open(file, 'w') { |f| f.write pbx_contents } end |
.load(path) ⇒ Object
Reads an Xcode project from the filesystem.
3 4 5 6 7 8 9 |
# File 'lib/zerg_xcode/shortcuts.rb', line 3 def self.load(path) file = ZergXcode::Paths.project_file_at path pbx_contents = File.read file project = Archiver.unarchive pbx_contents project.source_filename = file return project end |