Class: EacRailsBase0::AppGenerator::Builder

Inherits:
Rails::AppBuilder
  • Object
show all
Defined in:
lib/eac_rails_base0/app_generator/builder.rb

Instance Method Summary collapse

Instance Method Details

#appObject



10
11
12
# File 'lib/eac_rails_base0/app_generator/builder.rb', line 10

def app
  directory 'app'
end

#configObject



14
15
16
17
18
19
20
21
# File 'lib/eac_rails_base0/app_generator/builder.rb', line 14

def config
  inside 'config' do
    template 'routes.rb'
    template 'application.rb'
    template 'environment.rb'
    template 'secrets.yml'
  end
end

#database_ymlObject



23
24
25
# File 'lib/eac_rails_base0/app_generator/builder.rb', line 23

def database_yml
  template 'config/database.yml'
end

#dbObject



27
28
29
# File 'lib/eac_rails_base0/app_generator/builder.rb', line 27

def db
  directory 'db'
end

#libObject



31
32
33
# File 'lib/eac_rails_base0/app_generator/builder.rb', line 31

def lib
  directory 'lib'
end

#logObject



35
36
37
38
# File 'lib/eac_rails_base0/app_generator/builder.rb', line 35

def log
  # Do nothing
  empty_directory_with_keep_file 'log'
end

#readmeObject



6
7
8
# File 'lib/eac_rails_base0/app_generator/builder.rb', line 6

def readme
  # Do nothing
end

#testObject



40
41
42
# File 'lib/eac_rails_base0/app_generator/builder.rb', line 40

def test
  # Do nothing
end

#tmpObject



44
45
46
# File 'lib/eac_rails_base0/app_generator/builder.rb', line 44

def tmp
  # Do nothing
end

#vendorObject



48
49
50
# File 'lib/eac_rails_base0/app_generator/builder.rb', line 48

def vendor
  # Do nothing
end

#vendor_javascriptsObject



52
53
54
# File 'lib/eac_rails_base0/app_generator/builder.rb', line 52

def vendor_javascripts
  # Do nothing
end

#vendor_stylesheetsObject



56
57
58
# File 'lib/eac_rails_base0/app_generator/builder.rb', line 56

def vendor_stylesheets
  # Do nothing
end