doex v0.4.17 mix doex.put View Source
Execute a Digital Ocean API PUT request
doex put <path> <attributes>
For example
mix doex.put /images/12345 --name newname
The output will be similar to the following, and it’s the IDs you want.
{:ok,
%{"image" => %{"created_at" => "2017-08-02T13:54:05Z",
"distribution" => "Ubuntu", "id" => 12345, "min_disk_size" => 20,
"name" => "newname", "public" => false,
"regions" => ["tor1"], "size_gigabytes" => 2.05, "slug" => nil,
"type" => "snapshot"}}}
Link to this section Summary
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
.