Class: Kitestrings::Generators::InstallGenerator

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

Instance Method Summary collapse

Instance Method Details

#copy_app_view_filesObject



35
36
37
38
# File 'lib/generators/kitestrings/install_generator.rb', line 35

def copy_app_view_files
  copy_file "views/application/_navigation.html.haml", "app/views/application/_navigation.html.haml"
  copy_file "views/layouts/application.html.haml", "app/views/layouts/application.html.haml"
end

#copy_deployObject



11
12
13
# File 'lib/generators/kitestrings/install_generator.rb', line 11

def copy_deploy
  copy_file "deploy.rb", "config/deploy.rb"
end

#copy_deploy_filesObject



15
16
17
# File 'lib/generators/kitestrings/install_generator.rb', line 15

def copy_deploy_files
  directory "deploy", "config/deploy"
end

#copy_haml_filesObject



19
20
21
# File 'lib/generators/kitestrings/install_generator.rb', line 19

def copy_haml_files
  directory "haml", "lib/templates/haml"
end

#copy_rspec_filesObject



27
28
29
# File 'lib/generators/kitestrings/install_generator.rb', line 27

def copy_rspec_files
  directory "rspec", "lib/templates/rspec"
end

#copy_scaffold_filesObject



23
24
25
# File 'lib/generators/kitestrings/install_generator.rb', line 23

def copy_scaffold_files
  directory "rails", "lib/templates/rails"
end

#copy_spec_extObject



31
32
33
# File 'lib/generators/kitestrings/install_generator.rb', line 31

def copy_spec_ext
  directory "spec_ext", "spec_ext"
end