Class: UpdateVersionCommand
- Defined in:
- lib/commands/update_version.rb
Class Method Summary collapse
Methods inherited from MoreUtils
flag_lookup, gem_version, get_args, get_file_str, get_flags, root, this_dir, versions, write_file, wrong_version_error
Class Method Details
.run(*args) ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/commands/update_version.rb', line 7 def run *args # Add Controllers gc_template = get_file_str("#{this_dir}/../templates/global_controller.txt") write_file("#{root}/app/controllers/global_controller.rb", gc_template) gc_template = get_file_str("#{this_dir}/../templates/response.txt") write_file("#{root}/app/controllers/concerns/response.rb", gc_template) puts "Updated your code base for Rails Plus Plus version: #{gem_version}" end |