Class: Cli::Commands::NewApp::Files::Rakefile

Inherits:
Object
  • Object
show all
Defined in:
lib/cli/commands/new_app/files/rakefile.rb

Class Method Summary collapse

Class Method Details

.callObject



8
9
10
# File 'lib/cli/commands/new_app/files/rakefile.rb', line 8

def self.call
  File.write("Rakefile", content)
end

.contentObject



12
13
14
15
16
17
18
19
20
21
22
23
24
25
# File 'lib/cli/commands/new_app/files/rakefile.rb', line 12

def self.content
  "    # typed: false\n    # frozen_string_literal: true\n\n    require \"rake\"\n    require_relative \"app\"\n\n    Dir.glob(\"\#{Kirei::GEM_ROOT}/lib/tasks/**/*.rake\").each { import(_1) }\n\n    Dir.glob(\"lib/tasks/**/*.rake\").each { import(_1) }\n\n  RUBY\nend\n"