Skip to content

Commit

Permalink
Add up to convenience command set
Browse files Browse the repository at this point in the history
  • Loading branch information
ssdevopsio committed Sep 21, 2021
1 parent 70d6069 commit 3bfff9a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ Catapult orchestrates the following key components of DevOps to provide you with
- [Website Concurrency Maximum](#website-concurrency-maximum)
- [Interpreting Apache AB Results](#interpreting-apache-ab-results)
- [How-to](#how-to)
- [Vagrant Convenience Command ](#vagrant-convenience-command)
- [Vagrant Convenience Commands](#vagrant-convenience-commands)
- [Rotating Secrets](#rotating-secrets)
- [Troubleshooting](#troubleshooting)
- [Contributing](#contributing)
Expand Down Expand Up @@ -1656,9 +1656,9 @@ Percentage of the requests served within a certain time (ms)

This section outlines Catapult usage and maintenance.

## Vagrant Convenience Command ##
## Vagrant Convenience Commands ##

In the LocalDev environment, a convenience command is provided for use with Vagrant. This allows you to execute `reload` or `provision` against both dev environment VMs with a single command. Simply use `dev` as the machine name; e.g. `vagrant reload dev` or `vagrant provision dev`.
In the LocalDev environment, convenience commands are provided for use with Vagrant. These allow you to execute `reload`, `provision`, or `up` against both dev environment VMs with a single command. Simply use `dev` as the machine name; e.g. `vagrant reload dev` or `vagrant provision dev`.



Expand Down
2 changes: 1 addition & 1 deletion VERSION.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
version: 4.3.4
version: 4.3.5
major:
description: "Catapult uses Semantic Versioning. During a MAJOR increment, incompatable API changes are made which require a manual upgrade path. Please follow these directions:"
notice: "NEW MAJOR VERSION OF CATAPULT AVAILABLE"
Expand Down
9 changes: 6 additions & 3 deletions catapult/catapult.rb
Original file line number Diff line number Diff line change
Expand Up @@ -215,12 +215,15 @@ def Command::format_repo_size(repo_size)
catapult_exception("The company name could not be loaded from configuration. To use this convenience command, your Catapult configuration needs to be complete.")
end
case ARGV[0]
when "reload"
system("vagrant reload #{@configuration['company']['name'].downcase}-dev-redhat")
system("vagrant reload #{@configuration['company']['name'].downcase}-dev-redhat-mysql")
when "provision"
system("vagrant provision #{@configuration['company']['name'].downcase}-dev-redhat")
system("vagrant provision #{@configuration['company']['name'].downcase}-dev-redhat-mysql")
when "reload"
system("vagrant reload #{@configuration['company']['name'].downcase}-dev-redhat --provision")
system("vagrant reload #{@configuration['company']['name'].downcase}-dev-redhat-mysql --provision")
when "up"
system("vagrant up #{@configuration['company']['name'].downcase}-dev-redhat")
system("vagrant up #{@configuration['company']['name'].downcase}-dev-redhat-mysql")
end
exit 0
end
Expand Down

0 comments on commit 3bfff9a

Please sign in to comment.