Mix.NervesHubCLI.Utils (nerves_hub_cli v0.11.0) View Source
Link to this section Summary
Functions
Return the path to the generated firmware bundle
Read the firmware metadata from the specified firmware bundle
Takes the integer serial representation of a certificate serial number
and converts it to a hex string with :
separators to match typical
output from OpenSSL
Print the API endpoint that's being used to communicate with the NervesHub server
Split up a string of comma-separated tags
Turn map keys into strings
Link to this section Functions
Specs
Specs
firmware() :: Path.t()
Return the path to the generated firmware bundle
Specs
Specs
Read the firmware metadata from the specified firmware bundle
Specs
Specs
Specs
Takes the integer serial representation of a certificate serial number
and converts it to a hex string with :
separators to match typical
output from OpenSSL
Specs
show_api_endpoint() :: :ok
Print the API endpoint that's being used to communicate with the NervesHub server
Specs
Split up a string of comma-separated tags
Invalid tags raise.
iex> Mix.NervesHubCLI.Utils.split_tag_string("a, b, c") ["a", "b", "c"]
iex> Mix.NervesHubCLI.Utils.split_tag_string("a space tag, b, c") ** (RuntimeError) Tag 'a space tag' should not contain white space
iex> Mix.NervesHubCLI.Utils.split_tag_string("\"tag_in_quotes\"") ** (RuntimeError) Tag '"tag_in_quotes"' should not contain quotes
Specs
Turn map keys into strings