Sha256: 7bfe3412de79397e33fd219a040a91b4ce44dcb4c8427283451a1abb60abd379

Contents?: true

Size: 464 Bytes

Versions: 19

Compression:

Stored size: 464 Bytes

Contents

require 'rake'
require 'rails/generators'

module Cambium
  class InstallGenerator < Rails::Generators::Base
    desc "Add Cambium config file to your initializers."

    source_root File.expand_path('../../templates', __FILE__)

    # Copy our Cambium config file into the project's
    # config/initializers directory.
    #
    def add_config_file
      config_file = "config/initializers/cambium.rb"
      copy_file config_file, config_file
    end

  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
cambium-1.3.2 lib/generators/cambium/install_generator.rb
cambium-1.3.1 lib/generators/cambium/install_generator.rb
cambium-1.3.0 lib/generators/cambium/install_generator.rb
cambium-1.2.3 lib/generators/cambium/install_generator.rb
cambium-1.2.2 lib/generators/cambium/install_generator.rb
cambium-1.2.1 lib/generators/cambium/install_generator.rb
cambium-1.2.0 lib/generators/cambium/install_generator.rb
cambium-1.1.6 lib/generators/cambium/install_generator.rb
cambium-1.1.5 lib/generators/cambium/install_generator.rb
cambium-1.1.4 lib/generators/cambium/install_generator.rb
cambium-1.1.3 lib/generators/cambium/install_generator.rb
cambium-1.1.2 lib/generators/cambium/install_generator.rb
cambium-1.1.1 lib/generators/cambium/install_generator.rb
cambium-1.1.0 lib/generators/cambium/install_generator.rb
cambium-1.0.4 lib/generators/cambium/install_generator.rb
cambium-1.0.3 lib/generators/cambium/install_generator.rb
cambium-1.0.2 lib/generators/cambium/install_generator.rb
cambium-1.0.1 lib/generators/cambium/install_generator.rb
cambium-1.0.0 lib/generators/cambium/install_generator.rb