class GitRubyDeploy::Generators::InstallGenerator

Public Instance Methods

copy_files() click to toggle source

Generator Code. Remember this is just suped-up Thor so methods are executed in order

# File lib/generators/git_ruby_deploy/install_generator.rb, line 20
def copy_files
  copy_file 'config/controllers/git_deploy_controller.rb', 'app/controllers/git_deploy_controller.rb'
  inject_into_file 'config/routes.rb',"\tget '/deploy', to: 'git_deploy#deploy'\n", :before => /^end/
end