Skip to content

recipe-get

Shortcut: rg

Help option

~ $ dk recipe-get --help


Current context is: default
Usage: dk recipe-get [OPTIONS] [RECIPE]

  Get the latest remote versions of Recipe files. Changes will be auto-
  merged to local where possible. Conflicts will be written to local such
  that the impacted files contain full copies of both remote and local
  versions for the user to manually resolve. Local vs remote conflicts can
  be viewed via the file-diff command.

Options:
  -d, --delete_local  Deletes Recipe files that only exist on local.
  -o, --overwrite     Overwrites local version of Recipe files if said files
                      exist on remote.
  -y, --yes           Force through the command's subprompt.
  --help              Show this message and exit.

Get recipe using shortcut

~/Kitchens/Dev_Sprint $ dk rg Recipe1


Current context is: default
YYYY-MM-DD HH:MM:SS - Getting the latest version of Recipe 'Recipe1' in Kitchen 'Dev_Sprint'

DKCloudCommand.get_recipe has 7 sections
  Recipe1/node1
  Recipe1
  Recipe1/resources
  Recipe1/resources/email-templates
  Recipe1/action-node
  Recipe1/do-nothing-node
  Recipe1/action-node/actions

Get recipe and overwrite local copy using contextual options

~/Kitchens/Dev_Sprint/Recipe1 $ dk recipe-get --overwrite


Current context is: default
YYYY-MM-DD HH:MM:SS - Getting the latest version of Recipe 'Recipe1' in Kitchen 'Dev_Sprint'
Getting from remote 'variables.json'

Get recipe and delete local-only recipe files using shortcuts

~/Kitchens/Dev_Sprint $ dk rg -d


Current context is: default
YYYY-MM-DD HH:MM:SS - Getting the latest version of Recipe 'Recipe1' in Kitchen 'Dev_Sprint'
The following local only files will be deleted...

        .../Kitchens/Dev_Sprint/Recipe1/resources/test.txt

Are you sure you want to delete these local items? [yes/No]yes
deleting local file: .../Kitchens/Dev_Sprint/Recipe1/resources/test.txt
recipe-ingredient-list (ril)