Sha256: 148f29282c53d1e0447f183385373309a822df1dcfa35b85dc9bfc88aaca5027

Contents?: true

Size: 638 Bytes

Versions: 8

Compression:

Stored size: 638 Bytes

Contents

require "claide"

module Xcake
  class Command < CLAide::Command

    self.command = "xcake"
    self.version = VERSION
    self.description = "Create and maintain Xcode project files easily."

    def run
      file_path = "#{Dir.pwd}/Cakefile"

      unless File.exist?(file_path)
        raise Xcake::Informative, "Couldn't find Cakefile"
      end

      puts "Reading Cakefile..."
      file_contents = File.read(file_path)
      cakefile = eval(file_contents)

      resolver = ProjectStructureResolver.new
      cakefile.accept(resolver)

      generator = Generator::Project.new
      cakefile.accept(generator)
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
xcake-0.4.8 lib/xcake/command.rb
xcake-0.4.7 lib/xcake/command.rb
xcake-0.4.6 lib/xcake/command.rb
xcake-0.4.5 lib/xcake/command.rb
xcake-0.4.4 lib/xcake/command.rb
xcake-0.4.3 lib/xcake/command.rb
xcake-0.4.2 lib/xcake/command.rb
xcake-0.4.1 lib/xcake/command.rb