Class: ScaffoldhubGenerator
- Inherits:
-
Rails::Generators::ScaffoldGenerator
- Object
- Rails::Generators::ScaffoldGenerator
- ScaffoldhubGenerator
show all
- Includes:
- Scaffoldhub::Helper
- Defined in:
- lib/generators/scaffoldhub/scaffoldhub_generator.rb
Instance Method Summary
collapse
#download_scaffold_spec!, #each_gem, #each_template_file, #find_template_file, included, #post_install_message, #replace_name_tokens, #scaffold_name, #scaffold_parameter, #scaffold_spec, scaffold_spec, scaffold_spec=, #status_proc
Instance Method Details
#add_gems_to_gemfile ⇒ Object
25
26
27
28
29
|
# File 'lib/generators/scaffoldhub/scaffoldhub_generator.rb', line 25
def add_gems_to_gemfile
each_gem do |args|
gem(*args)
end
end
|
#display_post_install_message ⇒ Object
31
32
33
|
# File 'lib/generators/scaffoldhub/scaffoldhub_generator.rb', line 31
def display_post_install_message
say post_install_message
end
|
#download_and_copy_other_files ⇒ Object
16
17
18
19
20
21
22
23
|
# File 'lib/generators/scaffoldhub/scaffoldhub_generator.rb', line 16
def download_and_copy_other_files
each_template_file(:template) do |template_file|
template template_file.src, replace_name_tokens(template_file.dest)
end
each_template_file(:file) do |template_file|
copy_file template_file.src, replace_name_tokens(template_file.dest)
end
end
|