[asterisk-commits] dlee: branch 12 r402981 - /branches/12/rest-api-templates/make_ari_stubs.py

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Nov 21 15:21:44 CST 2013


Author: dlee
Date: Thu Nov 21 15:21:43 2013
New Revision: 402981

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=402981
Log:
ari: Fix generators for resources with camelCase names.

For the new deviceState resource, we need to properly generate
device_state.[ch] files.

Modified:
    branches/12/rest-api-templates/make_ari_stubs.py

Modified: branches/12/rest-api-templates/make_ari_stubs.py
URL: http://svnview.digium.com/svn/asterisk/branches/12/rest-api-templates/make_ari_stubs.py?view=diff&rev=402981&r1=402980&r2=402981
==============================================================================
--- branches/12/rest-api-templates/make_ari_stubs.py (original)
+++ branches/12/rest-api-templates/make_ari_stubs.py Thu Nov 21 15:21:43 2013
@@ -47,11 +47,11 @@
     Transform(rel('api.wiki.mustache'),
               'doc/rest-api/%s {{name_title}} REST API.wiki' % WIKI_PREFIX),
     Transform(rel('res_ari_resource.c.mustache'),
-              'res/res_ari_{{name}}.c'),
+              'res/res_ari_{{c_name}}.c'),
     Transform(rel('ari_resource.h.mustache'),
-              'res/ari/resource_{{name}}.h'),
+              'res/ari/resource_{{c_name}}.h'),
     Transform(rel('ari_resource.c.mustache'),
-              'res/ari/resource_{{name}}.c', overwrite=False),
+              'res/ari/resource_{{c_name}}.c', overwrite=False),
 ]
 
 RESOURCES_TRANSFORMS = [




More information about the asterisk-commits mailing list