Class: Addons::Recipe::Instructions::Addons
- Inherits:
-
Object
- Object
- Addons::Recipe::Instructions::Addons
- Defined in:
- lib/addons/recipes/instructions.rb
Overview
class Bundler
Constant Summary collapse
- ADDON_RECIPES_INSTALLED_EXISTS =
{ "run_msg" => "Checking for your ./addon_recipes_installed.yml file", "type" => InstructionTypes::TERMINAL_COMMAND, "command" => "touch ./addon_recipes_installed.yml", "expected_result" => { "type" => ResultTypes::NO_EXPECTATION }, "error_msg" => "Error: Problem creating addon_recipes_installed.yml to record your installed recipes" }
- RECIPE_HASNT_BEEN_RUN_BEFORE =
{ "run_msg" => "Verifying you have not installed this recipe before", "type" => InstructionTypes::TERMINAL_COMMAND, "command" => "grep '<RECIPE_HANDLE_PLACEHOLDER>' ./addon_recipes_installed.yml", "expected_result" => { "type" => ResultTypes::IS_EXACT_STRING, "values" => [""] }, "error_msg" => "Error: This recipe (<RECIPE_NAME_PLACEHOLDER>) has been run before. It cannot be run again." }
- RECORD_RECIPE_INSTALLED =
{ "run_msg" => "Adding \"<RECIPE_HANDLE_PLACEHOLDER>: '<RECIPE_VERSION_PLACEHOLDER>'\" to ./addon_recipes_installed.yml", "type" => InstructionTypes::MODIFY_CODE, "command" => { "type" => ModifyCodeTypes::ADD_CODE_WITHOUT_TAGS, "file" => "./addon_recipes_installed.yml", "code" => "<RECIPE_HANDLE_PLACEHOLDER>: '<RECIPE_VERSION_PLACEHOLDER>'", }, "error_msg" => "Error: Could not record recipe installation in ./addon_recipes_installed.yml" }