Sha256: b5f84190eebad6de3620ce69c5adef890e20edc26fb1c3b815e40cf630b0a4be

Contents?: true

Size: 418 Bytes

Versions: 8

Compression:

Stored size: 418 Bytes

Contents

require 'rails/generators'
require 'rails/generators/base'

module SentinelApi
  module Generators
    class InstallGenerator < ::Rails::Generators::Base
      source_root File.expand_path('./templates', __dir__)

      desc "Creates SentinelApi initializer"
      def create_sentinel_initializer
        template 'initializer.rb', 'config/initializers/sentinel_api.rb'

        puts 'Done'
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
logkeeper_api-0.0.9 lib/generators/sentinel_api/install_generator.rb
logkeeper_api-0.0.8 lib/generators/sentinel_api/install_generator.rb
logkeeper_api-0.0.7 lib/generators/sentinel_api/install_generator.rb
logkeeper_api-0.0.6 lib/generators/sentinel_api/install_generator.rb
logkeeper_api-0.0.5 lib/generators/sentinel_api/install_generator.rb
logkeeper_api-0.0.4 lib/generators/sentinel_api/install_generator.rb
logkeeper_api-0.0.3 lib/generators/sentinel_api/install_generator.rb
logkeeper_api-0.0.2 lib/generators/sentinel_api/install_generator.rb