Sha256: af9402f32bc15d02b5bf46a51e23831817fa3359cb5478bee482c1e923c5ed02

Contents?: true

Size: 876 Bytes

Versions: 6

Compression:

Stored size: 876 Bytes

Contents

module Ecm
  module CmsCore
    module Generators
      class InstallGenerator < ::Rails::Generators::Base
        desc "Installs the ECM CMS Core module"
        # class_option :skip_migration, :default => false
        class_option :skip_migration, :type => :boolean, :default => false
        
        def generate_migrations
          unless options[:skip_migration]
            generate 'ecm:cms_core:migrations'
          end  
        end
        
#        def generate_models
#          generate 'ecm:cms_core:models'
#        end      
        
        def generate_controller
          generate 'ecm:cms_core:controller'
        end
        
        def generate_locales
          generate 'ecm:cms_core:locales'
        end
        
        def generate_active_admin
          generate 'ecm:cms_core:active_admin'
        end          
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
ecm_cms_core-0.0.8 lib/generators/ecm/cms_core/install/install_generator.rb
ecm_cms_core-0.0.7 lib/generators/ecm/cms_core/install/install_generator.rb
ecm_cms_core-0.0.6 lib/generators/ecm/cms_core/install/install_generator.rb
ecm_cms_core-0.0.5 lib/generators/ecm/cms_core/install/install_generator.rb
ecm_cms_core-0.0.3 lib/generators/ecm/cms_core/install/install_generator.rb
ecm_cms_core-0.0.2 lib/generators/ecm/cms_core/install/install_generator.rb