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.13.0 lib/xcake/command/init.rb
xcake-0.12.1 lib/xcake/command/init.rb
xcake-0.12.0 lib/xcake/command/init.rb
xcake-0.11.0 lib/xcake/command/init.rb
xcake-0.10.0 lib/xcake/command/init.rb
xcake-0.9.4 lib/xcake/command/init.rb
xcake-0.9.3 lib/xcake/command/init.rb
xcake-0.9.2 lib/xcake/command/init.rb
xcake-0.9.1 lib/xcake/command/init.rb
xcake-0.9.0 lib/xcake/command/init.rb
xcake-0.8.13 lib/xcake/command/init.rb
xcake-0.8.12 lib/xcake/command/init.rb
xcake-0.8.10 lib/xcake/command/init.rb
xcake-0.8.9 lib/xcake/command/init.rb
xcake-0.8.8 lib/xcake/command/init.rb
xcake-0.8.7 lib/xcake/command/init.rb
xcake-0.8.6 lib/xcake/command/init.rb
xcake-0.8.3 lib/xcake/command/init.rb
xcake-0.8.1 lib/xcake/command/init.rb
xcake-0.7.1 lib/xcake/command/init.rb