Sha256: b603dcb482d04f73534cc213574e8e8544136f9cb8a35949ce575dc8c21754ec
Contents?: true
Size: 642 Bytes
Versions: 14
Compression:
Stored size: 642 Bytes
Contents
module Teabag::Generators class InstallGenerator < Rails::Generators::Base source_root File.expand_path("../", __FILE__) desc "Installs the Teabag initializer into your application." def copy_initializer copy_file "templates/initializer.rb", "config/initializers/teabag.rb" end def create_structure empty_directory "spec/javascripts/support" empty_directory "spec/javascripts/fixtures" end def copy_spec_helper copy_file "templates/spec_helper.js", "spec/javascripts/spec_helper.js" end def display_readme readme "POST_INSTALL" if behavior == :invoke end end end
Version data entries
14 entries across 14 versions & 1 rubygems