Sha256: c0018885895eb017e9b01d8e70db74cad2027320b891041c063036d392b62660
Contents?: true
Size: 701 Bytes
Versions: 2
Compression:
Stored size: 701 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 say_error "Cannot link to a .xcdatamodeld file" and abort if File.extname(path) == ".xcdatamodeld" 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
helios-0.4.1 | ./lib/helios/commands/link.rb |
helios-0.4.0 | ./lib/helios/commands/link.rb |