kmx.io/ex_ovh/docs/mix_task_basic.md

Download

Mix Task (Basic)

Generate ExOvh Config

The ovh mix task makes requests to the OVH API on the user’s behalf to generate an OVH application.

The environment variables generated by the task are automatically save to a .env file. It is best to ensure that this file is outside version control.

Shell input:

mix ovh \
--login=<username-ovh> \
--password=<password> \
--appname='ex_ovh'

Shell Output:

config :ex_ovh,
  ovh: [
    application_key: System.get_env("EX_OVH_APPLICATION_KEY"),
    application_secret: System.get_env("EX_OVH_APPLICATION_SECRET"),
    consumer_key: System.get_env("EX_OVH_CONSUMER_KEY"),
    endpoint: System.get_env("EX_OVH_ENDPOINT"),
    api_version: System.get_env("EX_OVH_API_VERSION") || "1.0"
  ]

Terms explained:

source .env

Source

Download