Sha256: aa464e295b24dd1c25753994f49f4e5592c4f6d2a13c7e3d853487aa1c83d6d3

Contents?: true

Size: 780 Bytes

Versions: 20

Compression:

Stored size: 780 Bytes

Contents

# frozen_string_literal: true

module Evostream
  module Generators
    # Create a generator for Rails application
    class InitializerGenerator < Rails::Generators::Base
      desc 'Generate a initializer for evostream-event gem.'
      INITIALIZER = <<-INIT
# frozen_string_literal: true

Evostream::Service.configuration do |config|
  config.uri_in     = 'http://server_stream.local:80'
  config.uri_out    = 'http://server_stream.local:7777'
  config.name       = 'srteamming_'
  config.web_root   = '/var/www/html'
  config.model      = ModelUsedInDatabase
  config.model_id   = :identifier_used_in_model
end
      INIT

      # Create initializer in Rails project
      def copy_initializer
        initializer 'evostream_event.rb', INITIALIZER
      end
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
evostream-event-0.3.0 lib/generators/evostream/initializer_generator.rb
evostream-event-0.3.0.pre.48 lib/generators/evostream/initializer_generator.rb
evostream-event-0.2.7 lib/generators/evostream/initializer_generator.rb
evostream-event-0.2.7.pre.44 lib/generators/evostream/initializer_generator.rb
evostream-event-0.2.6 lib/generators/evostream/initializer_generator.rb
evostream-event-0.2.6.pre.41 lib/generators/evostream/initializer_generator.rb
evostream-event-0.2.6.pre.39 lib/generators/evostream/initializer_generator.rb
evostream-event-0.2.5 lib/generators/evostream/initializer_generator.rb
evostream-event-0.2.5.pre.35 lib/generators/evostream/initializer_generator.rb
evostream-event-0.2.5.pre.34 lib/generators/evostream/initializer_generator.rb
evostream-event-0.2.4 lib/generators/evostream/initializer_generator.rb
evostream-event-0.2.4.pre.31 lib/generators/evostream/initializer_generator.rb
evostream-event-0.2.3 lib/generators/evostream/initializer_generator.rb
evostream-event-0.2.3.pre.27 lib/generators/evostream/initializer_generator.rb
evostream-event-0.2.2 lib/generators/evostream/initializer_generator.rb
evostream-event-0.2.2.pre.25 lib/generators/evostream/initializer_generator.rb
evostream-event-0.2.1 lib/generators/evostream/initializer_generator.rb
evostream-event-0.2.1.pre.23 lib/generators/evostream/initializer_generator.rb
evostream-event-0.2.0.pre.22 lib/generators/evostream/initializer_generator.rb
evostream-event-0.1.2.pre.20 lib/generators/evostream/initializer_generator.rb