Sha256: f8950027f6be8555558435829c0b1d94834bef1d793d763ed53a8fecdf1e92fe

Contents?: true

Size: 574 Bytes

Versions: 2

Compression:

Stored size: 574 Bytes

Contents

require 'core-data-parser'
require 'thor'

module CoreDataParser
  class Command < Thor
    include Thor::Actions
    desc "parse xcdatamodel-path", "parse a core data model and generate rails models (run from inside the app directory)."
    method_option :prefix, :type => :string, :aliases => "-p", :desc => "Remove the specified prefix from models."
    #method_option :template, :type => :boolean, :aliases => "-t", :desc => "Only display template that would be used"
    def parse(xcdatamodel)
      CoreDataParser.parse(xcdatamodel, options[:prefix])
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
core-data-parser-0.1.2 lib/core-data-parser/command.rb
core-data-parser-0.1.1 lib/core-data-parser/command.rb