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

Version Path
teabag-0.4.6 lib/generators/teabag/install/install_generator.rb
teabag-0.4.5 lib/generators/teabag/install/install_generator.rb
teabag-0.4.4 lib/generators/teabag/install/install_generator.rb
teabag-0.4.3 lib/generators/teabag/install/install_generator.rb
teabag-0.4.2 lib/generators/teabag/install/install_generator.rb
teabag-0.4.1 lib/generators/teabag/install/install_generator.rb
teabag-0.4.0 lib/generators/teabag/install/install_generator.rb
teabag-0.3.6 lib/generators/teabag/install/install_generator.rb
teabag-0.3.5 lib/generators/teabag/install/install_generator.rb
teabag-0.3.4 lib/generators/teabag/install/install_generator.rb
teabag-0.3.3 lib/generators/teabag/install/install_generator.rb
teabag-0.3.2 lib/generators/teabag/install/install_generator.rb
teabag-0.3.1 lib/generators/teabag/install/install_generator.rb
teabag-0.3.0 lib/generators/teabag/install/install_generator.rb