Sha256: 2477a15a035f41e8023abca96d148f307f8b7d5fcb9831be78b5937d6e9244c5

Contents?: true

Size: 400 Bytes

Versions: 3

Compression:

Stored size: 400 Bytes

Contents

module RackTrafficSignal
  module Generators
    class InstallGenerator < ::Rails::Generators::Base
      source_root File.expand_path('../../templates', __FILE__)
      desc 'Install Rack::TrafficSignal to Rails application'

      def install
        template 'initializer.rb', 'config/initializers/rack_traffic_signal.rb'
        template '503.html', 'public/503.html'
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rack-traffic-signal-0.1.4 lib/generators/rack_traffic_signal/install_generator.rb
rack-traffic-signal-0.1.3 lib/generators/rack_traffic_signal/install_generator.rb
rack-traffic-signal-0.1.2 lib/generators/rack_traffic_signal/install_generator.rb