Class: OldSql::CopyAssetsGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- OldSql::CopyAssetsGenerator
- Defined in:
- lib/generators/old_sql/copy_assets_generator.rb
Instance Method Summary collapse
Instance Method Details
#copy_assets ⇒ Object
7 8 9 |
# File 'lib/generators/old_sql/copy_assets_generator.rb', line 7 def copy_assets end |
#copy_old_sql_files ⇒ Object
16 17 18 19 20 21 |
# File 'lib/generators/old_sql/copy_assets_generator.rb', line 16 def copy_old_sql_files copy_file "#{gem_path}/public/stylesheets/old_sql/old_sql.css", "#{app_path}/public/stylesheets/old_sql/old_sql.css" copy_file "#{gem_path}/public/stylesheets/old_sql/old_sql.css", "#{app_path}/public/stylesheets/old_sql/table.css" copy_file "#{gem_path}/app/views/layouts/old_sql/report.html.erb", "#{app_path}/app/views/layouts/old_sql/report.html.erb" copy_file "#{gem_path}/app/views/layouts/old_sql/report.html.erb", "#{app_path}/app/views/layouts/old_sql/chart.html.erb" end |
#create_old_sql_dirs ⇒ Object
11 12 13 14 |
# File 'lib/generators/old_sql/copy_assets_generator.rb', line 11 def create_old_sql_dirs empty_directory "#{app_path}/public/stylesheets/old_sql" empty_directory "#{app_path}/app/views/layouts/old_sql" end |