Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Remove the AWS web_service generator

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7543 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
commit 0ba96e0568c2cf2f8cb8fe96fa48ea82a0228338 1 parent 39de84d
@NZKoz NZKoz authored
View
2  railties/CHANGELOG
@@ -1,5 +1,7 @@
*SVN*
+* Remove web_service generator. [Koz]
+
* Added the :all option to config.plugins that'll include the rest of the plugins not already explicitly named #9613 [fcheung]. Example:
# Loads :classic_pagination before all the other plugins
View
24 railties/lib/rails_generator/generators/components/web_service/USAGE
@@ -1,24 +0,0 @@
-Description:
- Stubs out the controller and API for a new web service using the deprecated
- Action Web Service framework. Pass the web service name, either CamelCased
- or under_scored, and a list of API methods as arguments. To create a web
- service within a module, use a path like 'module_name/web_service_name'.
-
- This generates a controller in app/controllers, an API definition
- in app/apis, and functional tests in test/functional.
-
-Example:
- `./script/generate web_service User add edit list remove`
-
- creates the User controller, API, and functional test:
- Controller: app/controllers/user_controller.rb
- API: app/apis/user_api.rb
- Test: test/functional/user_api_test.rb
-
-Modules Example:
- `./script/generate web_service 'api/registration' register renew`
-
- creates the Registration controller, API, and functional test:
- Controller: app/controllers/api/registration_controller.rb
- API: app/apis/api/registration_api.rb
- Test: test/functional/api/registration_api_test.rb
View
5 railties/lib/rails_generator/generators/components/web_service/templates/api_definition.rb
@@ -1,5 +0,0 @@
-class <%= class_name %>Api < ActionWebService::API::Base
-<% for method_name in args -%>
- api_method :<%= method_name %>
-<% end -%>
-end
View
8 railties/lib/rails_generator/generators/components/web_service/templates/controller.rb
@@ -1,8 +0,0 @@
-class <%= class_name %>Controller < ApplicationController
- wsdl_service_name '<%= class_name %>'
-<% for method_name in args -%>
-
- def <%= method_name %>
- end
-<% end -%>
-end
View
19 railties/lib/rails_generator/generators/components/web_service/templates/functional_test.rb
@@ -1,19 +0,0 @@
-require File.dirname(__FILE__) + '<%= '/..' * class_nesting_depth %>/../test_helper'
-require '<%= file_path %>_controller'
-
-class <%= class_name %>Controller; def rescue_action(e) raise e end; end
-
-class <%= class_name %>ControllerApiTest < Test::Unit::TestCase
- def setup
- @controller = <%= class_name %>Controller.new
- @request = ActionController::TestRequest.new
- @response = ActionController::TestResponse.new
- end
-<% for method_name in args -%>
-
- def test_<%= method_name %>
- result = invoke :<%= method_name %>
- assert_equal nil, result
- end
-<% end -%>
-end
View
29 railties/lib/rails_generator/generators/components/web_service/web_service_generator.rb
@@ -1,29 +0,0 @@
-class WebServiceGenerator < Rails::Generator::NamedBase
- def manifest
- record do |m|
- # Check for class naming collisions.
- m.class_collisions class_path, "#{class_name}Api", "#{class_name}Controller", "#{class_name}ApiTest"
-
- # API and test directories.
- m.directory File.join('app/apis', class_path)
- m.directory File.join('app/controllers', class_path)
- m.directory File.join('test/functional', class_path)
-
- # API definition, controller, and functional test.
- m.template 'api_definition.rb',
- File.join('app/apis',
- class_path,
- "#{file_name}_api.rb")
-
- m.template 'controller.rb',
- File.join('app/controllers',
- class_path,
- "#{file_name}_controller.rb")
-
- m.template 'functional_test.rb',
- File.join('test/functional',
- class_path,
- "#{file_name}_api_test.rb")
- end
- end
-end
Please sign in to comment.
Something went wrong with that request. Please try again.