Sha256: 088f3cb24ba57a66432e4b7fa37730c75502385dfd49d12607e6e9e1c66745d6

Contents?: true

Size: 483 Bytes

Versions: 26

Compression:

Stored size: 483 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)

        EventHooks.run_hook(:after_cakefile_init)
      end
    end
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
xcake-0.7.0 lib/xcake/command/init.rb
xcake-0.6.25 lib/xcake/command/init.rb
xcake-0.6.24 lib/xcake/command/init.rb
xcake-0.6.23 lib/xcake/command/init.rb
xcake-0.6.22 lib/xcake/command/init.rb
xcake-0.6.21 lib/xcake/command/init.rb