class SneakersRails::Generators::InstallGenerator

Public Instance Methods

copy_initializer() click to toggle source
# File lib/generators/sneakers_rails/install_generator.rb, line 10
def copy_initializer
  template "sneakers.rb.erb", "config/initializers/sneakers.rb"
end
include_sneakers_tasks() click to toggle source
# File lib/generators/sneakers_rails/install_generator.rb, line 14
def include_sneakers_tasks
  path = 'Rakefile'
  content = File.read(path) << "require 'sneakers/tasks'"
  File.open(path, 'wb') { |file| file.write(content)  }
end
show_readme() click to toggle source
# File lib/generators/sneakers_rails/install_generator.rb, line 20
def show_readme
  readme "INSTALL" if behavior == :invoke
end