Sha256: 7a53cdfabe58901563618b38890d579108e0ede5b80d94270bedf01ff25061c7

Contents?: true

Size: 515 Bytes

Versions: 16

Compression:

Stored size: 515 Bytes

Contents

module Xcake
  class Command
    class Init < Command
      self.summary = "Initilises an example Cakefile for creating a project"
      self.description = "Initilises an example Cakefile for creating a project"

      def run
        cakefile_path = "#{File.dirname(__FILE__)}/../resources/Cakefile"
        cakefile_contents = File.read(cakefile_path)
        File.write("Cakefile", cakefile_contents)

        puts "Open Cakefile to edit and run xcake make to get your xcode project"
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
xcake-0.6.19 lib/xcake/command/init.rb
xcake-0.6.18 lib/xcake/command/init.rb
xcake-0.6.17 lib/xcake/command/init.rb
xcake-0.6.16 lib/xcake/command/init.rb
xcake-0.6.14 lib/xcake/command/init.rb
xcake-0.6.13 lib/xcake/command/init.rb
xcake-0.6.12 lib/xcake/command/init.rb
xcake-0.6.11 lib/xcake/command/init.rb
xcake-0.6.10 lib/xcake/command/init.rb
xcake-0.6.9 lib/xcake/command/init.rb
xcake-0.6.8 lib/xcake/command/init.rb
xcake-0.6.7 lib/xcake/command/init.rb
xcake-0.6.6 lib/xcake/command/init.rb
xcake-0.6.5 lib/xcake/command/init.rb
xcake-0.6.4 lib/xcake/command/init.rb
xcake-0.6.2 lib/xcake/command/init.rb