Sha256: f2b07db7d61484df365ea90df2a6d1e36c983330867b2cb899de52df66ecf80f

Contents?: true

Size: 452 Bytes

Versions: 1

Compression:

Stored size: 452 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" and abort if args.empty?
    path = args.first

    begin
      `cp -r #{path} .` # TODO symbolic link with git mount
      say "Xcode Data Model successfully linked"
    rescue => exception
      say_error exception.message and abort
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
helios-0.1.1 ./lib/helios/commands/link.rb