-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement dedicated cloud console types (#1363)
- Loading branch information
1 parent
4566e48
commit 07113b1
Showing
22 changed files
with
567 additions
and
141 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
defmodule Core.Services.Cloud.Utils do | ||
alias Core.Repo | ||
alias Core.Clients.Console | ||
alias Core.Schema.{ConsoleInstance} | ||
|
||
def mark_provisioned(inst) do | ||
ConsoleInstance.changeset(inst, %{status: :provisioned}) | ||
|> Repo.update() | ||
end | ||
|
||
def console(), do: Console.new(Core.conf(:console_url), Core.conf(:console_token)) | ||
|
||
def dedicated_console(), do: Console.new(Core.conf(:console_url), Core.conf(:dedicated_console_token)) | ||
end |
Oops, something went wrong.