Sha256: 10a74ca660b00417e20f8700baa8ca8a3c1f6d3eb18df664425ddeea27098f41

Contents?: true

Size: 778 Bytes

Versions: 10

Compression:

Stored size: 778 Bytes

Contents

module Xcake
  class Command
    class Make < 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"

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

        EventHooks.run_hook :before_cakefile_read
        file_contents = File.read(file_path)

        project = Project.new
        project.instance_eval(file_contents, file_path)

        context = XcodeprojContext.new

        dependency_provider = DependencyProvider.new(Generator)
        dependency_provider.tsort.each do |g|
          generator = g.new(context)
          project.accept(generator)
        end
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
xcake-0.13.0 lib/xcake/command/make.rb
xcake-0.12.1 lib/xcake/command/make.rb
xcake-0.12.0 lib/xcake/command/make.rb
xcake-0.11.0 lib/xcake/command/make.rb
xcake-0.10.0 lib/xcake/command/make.rb
xcake-0.9.4 lib/xcake/command/make.rb
xcake-0.9.3 lib/xcake/command/make.rb
xcake-0.9.2 lib/xcake/command/make.rb
xcake-0.9.1 lib/xcake/command/make.rb
xcake-0.9.0 lib/xcake/command/make.rb