Sha256: 0539c69c929be1e354346bb4ebc59341a7f3ed64fa4833c6360e9a99df663121

Contents?: true

Size: 372 Bytes

Versions: 10

Compression:

Stored size: 372 Bytes

Contents

module Cloudfuji
  module Generators
    class RoutesGenerator < Rails::Generators::Base
  
      def create_routes_file
        prepend_to_file("config/routes.rb") do
<<-EOF
begin
  Rails.application.routes.draw do
    cloudfuji_routes
  end
rescue => e
  puts "Error loading the Cloudfuji routes:"
  puts "\#{e.inspect}"
end
EOF
        end

      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
cloudfuji-0.0.46 lib/generators/cloudfuji/routes_generator.rb
cloudfuji-0.0.45 lib/generators/cloudfuji/routes_generator.rb
cloudfuji-0.0.44 lib/generators/cloudfuji/routes_generator.rb
cloudfuji-0.0.43 lib/generators/cloudfuji/routes_generator.rb
cloudfuji-0.0.42 lib/generators/cloudfuji/routes_generator.rb
cloudfuji-0.0.41 lib/generators/cloudfuji/routes_generator.rb
cloudfuji-0.0.40 lib/generators/cloudfuji/routes_generator.rb
cloudfuji-0.0.39 lib/generators/cloudfuji/routes_generator.rb
cloudfuji-0.0.38 lib/generators/cloudfuji/routes_generator.rb
cloudfuji-0.0.37 lib/generators/cloudfuji/routes_generator.rb