Module: Cybele::Helpers::AppFiles::AssetsFiles

Included in:
AppBuilder
Defined in:
lib/cybele/helpers/app_files/assets_files.rb

Instance Method Summary collapse

Instance Method Details

#customize_assets_filesObject



7
8
9
10
# File 'lib/cybele/helpers/app_files/assets_files.rb', line 7

def customize_assets_files
  javascript_files
  stylesheet_files
end

#javascript_filesObject



12
13
14
15
16
17
18
19
20
21
22
23
# File 'lib/cybele/helpers/app_files/assets_files.rb', line 12

def javascript_files
  # Javascript Assets files
  remove_file 'app/assets/javascripts/application.js', force: true

  template 'app_files/app/assets/javascripts/application.js',
           'app/assets/javascripts/application.js',
           force: true

  template 'app_files/app/assets/javascripts/hq/application.js',
           'app/assets/javascripts/hq/application.js',
           force: true
end

#stylesheet_filesObject



25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# File 'lib/cybele/helpers/app_files/assets_files.rb', line 25

def stylesheet_files
  # Css Assets files
  remove_file 'app/assets/stylesheets/application.css', force: true

  template 'app_files/app/assets/stylesheets/application.sass',
           'app/assets/stylesheets/application.sass',
           force: true

  template 'app_files/app/assets/stylesheets/hq/application.sass',
           'app/assets/stylesheets/hq/application.sass',
           force: true

  copy_file 'app_files/app/assets/stylesheets/hq/_sidebar.sass',
            'app/assets/stylesheets/hq/_sidebar.sass'
end