Class: Breeze::InstallGenerator

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

Instance Method Summary collapse

Instance Method Details

#installObject



8
9
10
11
12
13
14
15
16
# File 'lib/generators/breeze/install/install_generator.rb', line 8

def install
  [:card_styles, :option_definitions, :page_styles , :section_styles,
  :cards, :sections , :pages, :images].each do |file|
    copy_file "empty.yml", "breeze/#{file}.yml"
  end
  copy_file "initializer.rb", "config/initializers/breeze.rb"
  empty_directory Breeze::Image.asset_root
  empty_directory Breeze.data_dir + "/breeze"
end