Sha256: 6b719c0c64f5c8cface4d526dbd191846641605fba4488717282efa43b12702a

Contents?: true

Size: 791 Bytes

Versions: 9

Compression:

Stored size: 791 Bytes

Contents

require 'rails/generators/base'
require 'securerandom'
module CamaleonCms
  module Generators
    class InstallGenerator < Rails::Generators::Base
      source_root File.expand_path("../install_template", __FILE__)
      desc "This generator create all basic Camaleon CMS structure."

      def create_initializer_file
        copy_file "system.json", "config/system.json"
        copy_file "plugin_routes.rb", "lib/plugin_routes.rb"
        copy_file "../../../Gemfile", "lib/Gemfile_camaleon"
        directory("apps", "app/apps")
        append_to_file 'Gemfile' do
          "\n\n#################### Camaleon CMS include all gems for plugins and themes #################### \nrequire './lib/plugin_routes' \ninstance_eval(PluginRoutes.draw_gems)"
        end
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
camaleon_cms-0.2.1 lib/generators/camaleon_cms/install_generator.rb
camaleon_cms-0.2.0 lib/generators/camaleon_cms/install_generator.rb
camaleon_cms-0.1.9 lib/generators/camaleon_cms/install_generator.rb
camaleon_cms-0.1.8 lib/generators/camaleon_cms/install_generator.rb
camaleon_cms-0.1.7 lib/generators/camaleon_cms/install_generator.rb
camaleon_cms-0.1.6 lib/generators/camaleon_cms/install_generator.rb
camaleon_cms-0.1.5 lib/generators/camaleon_cms/install_generator.rb
camaleon_cms-0.1.4 lib/generators/camaleon_cms/install_generator.rb
camaleon_cms-0.1.3 lib/generators/camaleon_cms/install_generator.rb