Sha256: f74e466612f1390070422d03d9e96099cca68a2db3bd9a5b4489662b0fdc250b
Contents?: true
Size: 810 Bytes
Versions: 2
Compression:
Stored size: 810 Bytes
Contents
module Ecm module Youtube module Backend module Generators class InstallGenerator < Rails::Generators::Base desc "Generates the intializer" source_root File.expand_path('../templates', __FILE__) def generate_initializer copy_file "initializer.rb", "config/initializers/ecm_youtube_backend.rb" end def add_to_itsf_backend insert_into_itsf_backend_config(Ecm::Youtube::Backend::Engine) end private def insert_into_itsf_backend_config(engine_name) inject_into_file 'config/initializers/001_itsf_backend.rb', after: "config.backend_engines = %w(\n" do " #{engine_name}\n" end end end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ecm_youtube_backend-1.0.1 | lib/generators/ecm/youtube/backend/install/install_generator.rb |
ecm_youtube_backend-1.0.0 | lib/generators/ecm/youtube/backend/install/install_generator.rb |