Sha256: b08083594aa4b5812c06d68ca2a434cc0df01513e8020d1b3d553f4e02597211

Contents?: true

Size: 698 Bytes

Versions: 3

Compression:

Stored size: 698 Bytes

Contents

module Xcake
  class Command
    class Bake < Command
      self.summary = "Makes the Xcode project from a Cakefile"
      self.description = "Makes the Xcode project from a Cakefile"

      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)

        project = Project.new
        project.instance_eval(file_contents)

        resolver = ProjectStructureResolver.new
        project.accept(resolver)

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
xcake-0.5.2 lib/xcake/command/bake.rb
xcake-0.5.1 lib/xcake/command/bake.rb
xcake-0.5.0 lib/xcake/command/bake.rb