Skip to content

Conversation

@mattezra
Copy link
Contributor

@mattezra mattezra commented May 5, 2023

Created 2 new commands for media bin:

  1. zesty media bin generate [INSTANCE_ZUID]
  • generates bin.json in .zesty directory which will contain the bin data (array) of the selected instance (including cdn_base_url which will be the media_domain)
  • this is formatted similar to instance.json (previously config.json)
  1. zesty media bin list [INSTANCE_ZUID]
  • lists all media bins of the selected instance
  • created this to match zesty instance list

Example bin.json:

{
  "8-94a9becdfd-1zrdkd": [
    {
      "id": "1-fb01bc0-wrjhmt",
      "name": "zesty-my-app",
      "site_id": "8360051",
      "eco_id": null,
      "storage_driver": "gcp",
      "storage_name": "zesty-9ba66af3f3f397fef3ef61d2e54f5f6f560762b1",
      "storage_base_url": "https://zesty-9ba66af3f3f397fef3ef61d2e54f5f6f560762b1.storage.googleapis.com",
      "cdn_driver": "fastly",
      "cdn_base_url": "https://qwp8m35t.media.zestyio.com",
      "created_at": "2023-05-05T07:01:20.000Z",
      "deleted_at": null,
      "deleted_from_storage_at": null,
      "default": true
    }
  ]
}

NOTE:

  • included the keyword media in the command to support other media entities such as files, groups, etc. in the cli

@mattezra mattezra requested a review from shrunyan May 5, 2023 07:20
@mattezra mattezra self-assigned this May 5, 2023
Matthew Ezra Labre added 2 commits May 5, 2023 15:26
@mattezra mattezra requested a review from allenpigar May 8, 2023 22:31
@mattezra mattezra added enhancement New feature or request ready labels Sep 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request ready

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants