mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-06-30 07:50:43 +00:00
DOCS: standardize on EXAMPLES (a.k.a. Docs-JumboPatch JetLag Edition)
Migrated all examples: in DOCUMENTATION=''' string to standalone EXAMPLES=''' string Added deprecation warning to moduledev.rst and remove deprecated example from it Fixed up a few typos and uppercased some acronyms. add consistency to how EXAMPLES are formatted
This commit is contained in:
parent
39aa5e5eac
commit
5c69918d53
88 changed files with 914 additions and 628 deletions
|
|
@ -80,22 +80,22 @@ author: Scott Anderson
|
|||
|
||||
EXAMPLES = """
|
||||
# Run cleanup on the application installed in '$django_dir'.
|
||||
django_manage: command=cleanup app_path=$django_dir
|
||||
- django_manage: command=cleanup app_path=$django_dir
|
||||
|
||||
# Load the $initial_data fixture into the application
|
||||
django_manage: command=loaddata app_path=$django_dir fixtures=$initial_data
|
||||
- django_manage: command=loaddata app_path=$django_dir fixtures=$initial_data
|
||||
|
||||
#Run syncdb on the application
|
||||
django_manage: >
|
||||
command=syncdb
|
||||
app_path=$django_dir
|
||||
settings=$settings_app_name
|
||||
pythonpath=$settings_dir
|
||||
virtualenv=$virtualenv_dir
|
||||
database=$mydb
|
||||
- django_manage: >
|
||||
command=syncdb
|
||||
app_path=$django_dir
|
||||
settings=$settings_app_name
|
||||
pythonpath=$settings_dir
|
||||
virtualenv=$virtualenv_dir
|
||||
database=$mydb
|
||||
|
||||
#Run the SmokeTest test case from the main app. Useful for testing deploys.
|
||||
django_manage command=test app_path=django_dir apps=main.SmokeTest
|
||||
- django_manage: command=test app_path=django_dir apps=main.SmokeTest
|
||||
"""
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ author: Matt Wright
|
|||
|
||||
EXAMPLES = '''
|
||||
# Manage the state of program to be in 'started' state.
|
||||
supervisorctl: name=my_app state=started
|
||||
- supervisorctl: name=my_app state=started
|
||||
'''
|
||||
|
||||
def main():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue