Sha256: 8b674e95cae50de94131dacbabe4e9ea9df9f0080675086dccca56677c79905f

Contents?: true

Size: 1.21 KB

Versions: 1

Compression:

Stored size: 1.21 KB

Contents

require 'rails_generator/base'

class IknowGenerator < Rails::Generator::Base
	def manifest
		record do |m|
		  m.class_collisions 'IknowOauthController', 'IknowOauthControllerTest', 'IknowOauthHelper',
		                     'IknowOauthSystem', 'IknowOauthToken', 'IknowOauthTokenTest'

		  m.migration_template 'iknow_oauth_tokens_migration.rb', 'db/migrate', :migration_file_name => 'create_iknow_oauth_tokens'

			m.template 'iknow_oauth_controller.rb',      File.join('app/controllers', 'iknow_oauth_controller.rb'     )
      m.template 'iknow_oauth_controller_test.rb', File.join('test/functional', 'iknow_oauth_controller_test.rb')
			m.template 'iknow_oauth_helper.rb',          File.join('app/helpers',     'iknow_oauth_helper.rb'         )
		  m.template 'iknow_oauth_system.rb',          File.join('lib',             'iknow_oauth_system.rb'         )
			m.template 'iknow_oauth_token.rb',           File.join('app/models',      'iknow_oauth_token.rb'          )
			m.template 'iknow_oauth_token_test.rb',      File.join('test/unit',       'iknow_oauth_token_test.rb'     )

      m.directory File.join('app/views', 'iknow_oauth')
      m.template 'index.rhtml', File.join('app/views', 'iknow_oauth', 'index.rhtml')
		end
	end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
nov-iknow-0.0.2 generators/iknow/iknow_generator.rb