* Create maintenance command
* Read filepath and filename
zsh:1: command not found: q
* Addd config and test
* Addd config and test
* Add tests and imports
* Add test for writing maintenance file
Co-authored-by: Cristhian Motoche <CristhianMotoche@users.noreply.github.com>
* Expand writeMaintenancFile function
Co-authored-by: Cristhian Motoche <CristhianMotoche@users.noreply.github.com>
* Add functionality for command enable
Co-authored-by: Cristhian Motoche <CristhianMotoche@users.noreply.github.com>
* Add delete function
* Add filename and directory from configPath
zsh:1: command not found: wq
* Remove unused file
* Change variable name
* Remove Utils from cabal file
* Remove environment file
* Change pattern
* Add suggested formatting and comments
* Add more suggestions and option to run stack
* Update README with new variables
* Update README with changes
Co-authored-by: Cristhian Motoche <CristhianMotoche@users.noreply.github.com>
Refactor is mainly moving runHapistrano from System.Hapistrano.Core to System.Hapistrano, and moving Opts and Command datatypes from Main to System.Hapistrano.Types
* Copy directory instead of cloning an entire repository
* Improve haddock of types
* Rename new ADT to Source
* Add tests for new configuration
* Update changelog and readme
* Addres PR comments
* Updated changelog and hapistrano's version
Co-authored-by: Juan Paucar <jpaucar@stackbuilders.com>
* Support shared files and directories
* Update README, CHANGELOG and PVP in .cabal file
* Add tests for shared files and dirs
* Update tests description
* Do not check the list order in files list
* Use a upper bound of directory
* Follow suggestions and comments in PR
The old way of seeing the version of the program was by doing
something like this:
hap deploy -v
This patch makes it viewable by doing like this (which I feel is a
proper way to do):
hap -v
This is necessary because ‘scp’ has fewer options than normal ‘cp’ and so it
lacks flags that would prevent failing because of missing target location.
We add there these commands to ensure that copying of files always succeeds.
* Refactor/rewrite all the code
The change prepares solid ground for further improvements. This also fixes
at least two bugs:
* Proper support for empty lines and comments in build scripts.
* Previously switching to new releases was not atomic despite messing with
symlinks. This is because it deleted the current link before creating the
new one, but it should have created a new link and then use ‘mv’ to
replace the old one atomically. The code has been changed to work properly
now.
* Refresh the test suite as well
* Fix the build for older GHCs
* Use subshell for ‘cd’ commands