Class: Epyce::Generators::InstallGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/epyce/install/install_generator.rb

Instance Method Summary collapse

Instance Method Details

#copy_assetsObject



15
16
17
18
19
20
# File 'lib/generators/epyce/install/install_generator.rb', line 15

def copy_assets
  say_status("Copying", "assets files", :green)
  ["apple-touch-icon-114x114-precomposed.png", "apple-touch-icon-57x57-precomposed.png", "apple-touch-icon-72x72-precomposed.png", "apple-touch-icon-precomposed.png", "apple-touch-icon.png", "favicon.png" ].each do |f|
    copy_file "public/#{f}", "public/#{f}"
  end
end

#copy_cssObject



36
37
38
39
40
41
# File 'lib/generators/epyce/install/install_generator.rb', line 36

def copy_css
  say_status("Copying", "stylesheets loaders", :green)
  ["epyce.css.sass" ].each do |f|
    copy_file "app/assets/stylesheets/#{f}", "app/assets/stylesheets/#{f}"
  end
end

#copy_javascriptsObject



29
30
31
32
33
34
# File 'lib/generators/epyce/install/install_generator.rb', line 29

def copy_javascripts
  say_status("Copying", "javascripts loaders", :green)
  ["epyce-libs-debug.js.coffee", "epyce-libs.js.coffee", "epyce.js.coffee" ].each do |f|
    copy_file "app/assets/javascripts/#{f}", "app/assets/javascripts/#{f}"
  end
end

#copy_layoutObject



8
9
10
11
12
13
# File 'lib/generators/epyce/install/install_generator.rb', line 8

def copy_layout
  say_status("Copying", "application layout files", :green)
  ["application.html.haml", "_header.html.haml", "_footer.html.haml", "_flashes.html.haml"].each do |f|
    copy_file "app/views/layouts/#{f}", "app/views/layouts/#{f}"
  end
end

#copy_publicObject



22
23
24
25
26
27
# File 'lib/generators/epyce/install/install_generator.rb', line 22

def copy_public
  say_status("Copying", "public files", :green)
  ["crossdomain.xml" ].each do |f|
    copy_file "public/#{f}", "public/#{f}"
  end
end