Commit Graph

22 Commits

Author SHA1 Message Date
Götz Christ
9fcb3f24fe When showing version information also show git branch and commit 2017-12-27 17:27:38 -05:00
Götz Christ
a32b944001 Standarize style and small cleanup
Using stylish-haskell
2017-12-27 13:54:32 -05:00
Juan Carlos Paucar
e05ecf6f70 Make distinction between target platforms for deploy 2017-12-04 16:42:19 -05:00
Sibi Prabakaran
72b3784749
Play the scripts in the local machine (localhost) 2017-08-30 03:26:00 +05:30
Sibi Prabakaran
27567327ec
Add run_locally command section
This will allow programs to be run on local machine before Hap get's
started up.
2017-08-30 03:24:37 +05:30
Vanessa McHale
1b714978fe Generate help for subcommands 2017-05-15 21:38:22 -05:00
Sibi
2636cc5c06 Add ability to make version control related activities optional (#66) 2017-04-05 20:57:50 +03:00
Sibi
b2311466a3 Fix version display (#64)
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
2017-03-30 13:56:54 +03:00
mrkkrp
fd40572c90 Print newline after the final “Success.” message 2017-03-01 23:59:17 +03:00
Mark Karpov
e4790b3619 Implement concurrent multihost deployment (#60)
* Implement concurrent multi-host deployment
* Fix a couple of typos/obsolete info in ‘CHANGELOG.md’
2017-03-02 00:40:08 +04:00
mrkkrp
01a30ee43d Ensure that target directories for ‘scp’ actually exist
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.
2017-02-21 19:45:56 +03:00
mrkkrp
ca396d19eb Restart command should be run after release activation 2017-02-21 19:44:54 +03:00
Mark Karpov
d791dd164e Add support for copying files and directories (#58) 2017-02-20 19:09:21 +04:00
Mark Karpov
e8b1d7a8d9 Use ‘hap.yaml’ to store configuration (#57) 2017-02-20 18:33:12 +04:00
Mark Karpov
7727061493 Add verification before rollbacks (#53) 2017-02-08 20:16:53 +04:00
Mark Karpov
72a1b75e70 Refactor/rewrite all the code (#52)
* 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
2017-02-06 19:04:00 +04:00
Mark Karpov
d66bb9b0db Use a different Travis script plus more (#51)
We should test with Cabal, not stack, because it allows to test in more
adverse environment, test with GHC versions that are not yet in snapshorts,
and generally improve compatibility.

This script tests with Cabal 1.24, as it's compatible with all GHC versions
of interest and has a better dependency resolution algorithm that allows to
avoid some problems with builds.

I also would like to impose 100% Haddock coverage here.
2017-01-29 18:25:02 +04:00
Cristhian Motoche
c6dd1bc640 Parse env variable PORT (#39) 2017-01-28 17:43:45 +04:00
Cristhian Motoche
64dd271aa5 Add optparse-applicative for parsing args (#46) 2017-01-28 17:05:37 +04:00
Juan Pedro Villa Isaza
e5b2a83cb2 Handle missing environment variables 2015-09-24 18:01:25 -05:00
Juan Pedro Villa Isaza
d4c623b45a Handle command line options with GetOpt (Close #33) 2015-09-24 16:18:00 -05:00
Juan Pedro Villa Isaza
c6fb4becfc Clean up (Cabal) package 2015-09-09 14:05:20 -05:00