Sha256: 674324738939bf991c1f15458ff7ae301c675ee35ff8539620cbb1c4415a9e06

Contents?: true

Size: 800 Bytes

Versions: 16

Compression:

Stored size: 800 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"

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

        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

16 entries across 16 versions & 1 rubygems

Version Path
xcake-0.8.13 lib/xcake/command/make.rb
xcake-0.8.12 lib/xcake/command/make.rb
xcake-0.8.10 lib/xcake/command/make.rb
xcake-0.8.9 lib/xcake/command/make.rb
xcake-0.8.8 lib/xcake/command/make.rb
xcake-0.8.7 lib/xcake/command/make.rb
xcake-0.8.6 lib/xcake/command/make.rb
xcake-0.8.3 lib/xcake/command/make.rb
xcake-0.8.1 lib/xcake/command/make.rb
xcake-0.7.1 lib/xcake/command/make.rb
xcake-0.7.0 lib/xcake/command/make.rb
xcake-0.6.25 lib/xcake/command/make.rb
xcake-0.6.24 lib/xcake/command/make.rb
xcake-0.6.23 lib/xcake/command/make.rb
xcake-0.6.22 lib/xcake/command/make.rb
xcake-0.6.21 lib/xcake/command/make.rb