Skip to content

Commit

Permalink
Implement --from flag for installer (#116)
Browse files Browse the repository at this point in the history
This is a good bit more robust than the alternative, as it reduces the risk of getting tripped on a flaky unrelated app

Co-authored-by: test <[email protected]>
  • Loading branch information
michaeljguarino and test authored Nov 3, 2022
1 parent 558ae0f commit 92d145b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ ENV HELM_VERSION=v3.9.4
ENV TERRAFORM_VERSION=v1.2.8

# renovate: datasource=github-releases depName=pluralsh/plural-cli
ENV CLI_VERSION=v0.5.9
ENV CLI_VERSION=v0.5.21

# renovate: datasource=github-tags depName=kubernetes/kubernetes
ENV KUBECTL_VERSION=v1.24.3
Expand Down
2 changes: 1 addition & 1 deletion lib/console/commands/plural.ex
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ defmodule Console.Commands.Plural do

def deploy(_repo \\ :ignore), do: plural("deploy", ["--silence"])

def install(), do: plural("deploy", ["--silence", "--ignore-console"])
def install(repo), do: plural("deploy", ["--silence", "--ignore-console", "--from", repo])

def diff(_repo \\ :ignore), do: plural("diff", [])

Expand Down
2 changes: 1 addition & 1 deletion lib/console/deployer.ex
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ defmodule Console.Deployer do
{storage, :init, []},
{Context, :merge, [conf, %Context.Bundle{repository: b["repository"], name: b["name"]}]},
{Plural, :build, []},
{Plural, :install, []},
{Plural, :install, [b["repository"]]},
{storage, :revise, [commit_message(message, b["repository"])]},
{storage, :push, []}
], storage)
Expand Down

0 comments on commit 92d145b

Please sign in to comment.