Sha256: 028b41c19ae187e90f8388c2bf27d01bd28727981296a44650ee40b8cb9bbd0a
Contents?: true
Size: 597 Bytes
Versions: 8
Compression:
Stored size: 597 Bytes
Contents
require 'fileutils' command :link do |c| c.syntax = 'helios link path/to/Model.xcdatamodel' c.summary = 'Links a Core Data model' c.action do |args, options| say_error "Missing argument: path/to/Model.xcdatamodel" and abort if args.empty? path = args.first begin File.link(path, File.basename(path)) say_ok "Xcode data model successfully linked" say "Any changes made to the data model file will automatically be propagated to Helios the next time the server is started." rescue => exception say_error exception.message and abort end end end
Version data entries
8 entries across 8 versions & 2 rubygems