]> git.nothing2do.fr Git - get-hack-src.git/commitdiff
updated templates
authorallfro <ndouba@gmail.com>
Wed, 10 Oct 2012 16:06:57 +0000 (12:06 -0400)
committerallfro <ndouba@gmail.com>
Wed, 10 Oct 2012 16:06:57 +0000 (12:06 -0400)
src/canari/resources/template/README.plate
src/canari/resources/template/__init__.plate
src/canari/resources/template/_canari.plate [new file with mode: 0644]
src/canari/resources/template/entities.plate
src/canari/resources/template/newtransform.plate
src/canari/resources/template/setup.plate
src/canari/resources/template/transform.plate

index c5e30f4dcd97b917a7a75b98f291c2e04a673788..09bfa3bd9e7289d9cf0b698b208a45cdc2ccc0f7 100644 (file)
@@ -1,28 +1,28 @@
 # README - ${project}
 
 Welcome to Canari. You might be wondering what all these files are about. Before you can use the power of
-```mtginstall``` you needed to create a transform package and that's exactly what you did here! I've given you a
+`canari install-package` you needed to create a transform package and that's exactly what you did here! I've given you a
 directory structure to use in the following manner:
 
-* ```src/${package}``` directory is where all your stuff goes in terms of auxiliary modules that you may need for your
+* `src/${package}` directory is where all your stuff goes in terms of auxiliary modules that you may need for your
   modules
-* ```src/${package}/transforms``` directory is where all your transform modules should be placed. An example
-  ```helloworld``` transform is there for your viewing pleasure.
-* ```src/${package}/transforms/common``` directory is where you can put some common code for your transforms like result
+* `src/${package}/transforms` directory is where all your transform modules should be placed. An example
+  `helloworld` transform is there for your viewing pleasure.
+* `src/${package}/transforms/common` directory is where you can put some common code for your transforms like result
   parsing, entities, etc.
-* ```src/${package}/transforms/common/entities.py``` is where you define your custom entities. Take a look at the
+* `src/${package}/transforms/common/entities.py` is where you define your custom entities. Take a look at the
   examples provided if you want to play around with custom entities.
-* ```maltego/``` is where you can store your Maltego entity exports.
+* `maltego/` is where you can store your Maltego entity exports.
 
-If you're going to add a new transform in the transforms directory, remember to update the ```__all__``` variable in
-```src/${package}/transforms/__init__.py```. Otherwise, ```mtginstall``` won't attempt to install the transform.
-Alternatively, ```mtgtransgen <transform name>``` can be used within the ```src/${package}/transforms``` directory to
-generate a transform module and have it automatically added to the ```__init__.py``` file, like so:
+If you're going to add a new transform in the transforms directory, remember to update the `__all__` variable in
+`src/${package}/transforms/__init__.py`. Otherwise, `canari install-package` won't attempt to install the transform.
+Alternatively, `canari create-transform <transform name>` can be used within the `src/${package}/transforms` directory
+to generate a transform module and have it automatically added to the `__init__.py` file, like so:
 
-To test your transform, simply ```cd``` into the src directory and run ```mtgdebug```, like so:
+To test your transform, simply `cd` into the src directory and run `canari debug-transform`, like so:
 
 ```bash
-$$ mtgdebug ${project}.transforms.helloworld Phil
+$$ canari debug-transform ${project}.transforms.helloworld Phil
 %50
 D:This was pointless!
 %100
index df8dab559d7a8f883f4b1e47a8f4ce2b62b5892a..bf37babb0f7de62caa5edc24242d41a6021fde69 100644 (file)
@@ -7,5 +7,5 @@ __credits__ = []
 __license__ = 'GPL'
 __version__ = '0.1'
 __maintainer__ = '${author}'
-__email__ = 'whereim@onthe.net'
+__email__ = '${email}'
 __status__ = 'Development'
\ No newline at end of file
diff --git a/src/canari/resources/template/_canari.plate b/src/canari/resources/template/_canari.plate
new file mode 100644 (file)
index 0000000..1dfb67d
--- /dev/null
@@ -0,0 +1,6 @@
+[metadata]
+
+author = ${author}
+project = ${project}
+maintainer = ${maintainer}
+email = ${email}
index c863431b8c74ea7e2121a213f77c1256c7c8c6c3..c41b2e8105d7eb7fafca92ba6d60f87cc8a74c86 100644 (file)
@@ -9,7 +9,7 @@ __credits__ = []
 __license__ = 'GPL'
 __version__ = '0.1'
 __maintainer__ = '${author}'
-__email__ = 'whereim@inthe.net'
+__email__ = '${email}'
 __status__ = 'Development'
 
 __all__ = [
index 0ba591907265b400c07d053312b9f445b555ff1f..aa3d7e75e124767e95f8de9de9e7c2c593aecfc6 100644 (file)
@@ -4,13 +4,13 @@ from canari.maltego.utils import debug, progress
 from canari.framework import configure #, superuser
 
 __author__ = '${author}'
-__copyright__ = 'Copyright ${year}, <project> Project'
+__copyright__ = 'Copyright ${year}, ${project} Project'
 __credits__ = []
 
 __license__ = 'GPL'
 __version__ = '0.1'
-__maintainer__ = '${author}'
-__email__ = 'whereim@onthe.net'
+__maintainer__ = '${maintainer}'
+__email__ = '${email}'
 __status__ = 'Development'
 
 __all__ = [
@@ -18,11 +18,12 @@ __all__ = [
     'onterminate'
 ]
 
-# Uncomment the line below if the transform needs to run as super-user
-#@superuser
+
 """
 TODO: set the appropriate configuration parameters for your transform.
+TODO: Uncomment the line below if the transform needs to run as super-user
 """
+#@superuser
 @configure(
     label='TODO: To Something [Hello World]',
     description='TODO: Returns a Something entity with the phrase "Hello Word!"',
index 0660f34ccc53a9804319f8344f0183a7328ff9b4..f8e35cfc06d28d1a9b929ea01ecbb6f15a61c7d0 100755 (executable)
@@ -4,8 +4,8 @@ setup(
     name='${package}',
     author='${author}',
     version='1.0',
-    author_email='whereim@onthe.net',
-    description='Your description here',
+    author_email='${email}',
+    description='${description}',
     license='GPL',
     packages=find_packages('src'),
     package_dir={ '' : 'src' },
index 0cdc1944d4dcfdea423ff537c41ff4329e1ece16..553a4071719d16a40263cac51a1762b8b842b7f6 100644 (file)
@@ -12,7 +12,7 @@ __credits__ = []
 __license__ = 'GPL'
 __version__ = '0.1'
 __maintainer__ = '${author}'
-__email__ = 'whereim@onthe.net'
+__email__ = '${email}'
 __status__ = 'Development'
 
 __all__ = [