ExOvh v0.4.0 mix ovh View Source

A mix task that generates the ex_ovh application secrets on the user’s behalf.

Steps

  • The user needs to set up an ovh account at https://www.ovh.co.uk/ and retrieve a username (nic-handle) and password.

  • Then the user is prompted to do some activations.

  • Upon completion of activations, the user needs to create an application in the ovh website.

  • Then the user can create an application at https://eu.api.ovh.com/createApp/ or alternatively the user can use this mix task to generate the application:

Example

Create an app with access to all apis:

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

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")
 ]

See the [mix task documentation]((https://github.com/stephenmoloney/ex_ovh/blob/master/docs/mix_task.md).

Link to this section Summary

Functions

A task needs to implement run which receives a list of command line args

Link to this section Functions

A task needs to implement run which receives a list of command line args.

Callback implementation for Mix.Task.run/1.