2017 © Pedro Peláez
 

library z-plugin-refs

A refs plugin that will create refs from deploy

image

zicht/z-plugin-refs

A refs plugin that will create refs from deploy

  • Thursday, February 9, 2017
  • by muhammedeminakbulut
  • Repository
  • 2 Watchers
  • 0 Stars
  • 23 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 11 Versions
  • 15 % Grown

The README.md

z-plugin-refs

This plugin will create commit from the tree that is deployed (and if the ref already exists with the old ref as parent) and saves/update the commit hash in a ref that is located in refs/envs/{{target_env}}. So for example you deploy to production the ref will be stored in refs/envs/production (or on working dir ./git/refs/production)., (*1)

So what it basically does is creating an new timeline/history from the commits deployed to a environment and because it is basically a branch with the refs/envs/{{target_env}} as head, you can do evertything what you normaly do with branch., (*2)

installation

add refs to the plugins of a project, (*3)

plugins: [... 'refs']

It hook into the post deploy andd add some extra commands., (*4)

  env:refs:remote:fetch    Fetch the refs from the remote
  env:refs:remote:push     Push the reft to remote
  env:refs:resolve         Search and print hash of commit with the smae hash from the HEAD
  env:refs:search          Will search for a tree in the commit history from the HEAD.
  env:refs:sync            Will set the ref from a remote when not exists.

examples

print logs:, (*5)

~# git reflog refs/envs/production

commit aa33bceb41dee4e97b92645809455dca49c0b6ba
Author: philip <philip@zicht.nl>
Date:   Wed Oct 26 11:51:32 2016 +0200

    [z] Commit from: '6876a77 capitalize first char'

or:, (*6)

~# git reflog refs/envs/production
aa33bce refs/envs/production@{0}: [z] new ref for 6876a77b43256710f882c744eb117decde9ce222

do rollbacks:, (*7)

z deploy production envs/production~1

check diffs of deploys:, (*8)

git diff envs/production~1 envs/production

dependencies

lib description
zicht/z-plugin-git because it has no use if you are not using git
php > 5.6.0 The internals are using some features tha are only available from > 5.6 (variadic functions and argument unpacking)

The Versions

09/02 2017

dev-release/2.0.x

dev-release/2.0.x

A refs plugin that will create refs from deploy

  Sources   Download

MIT

The Requires

 

by Philip Bergman

09/02 2017

2.0.4

2.0.4.0

A refs plugin that will create refs from deploy

  Sources   Download

MIT

The Requires

 

by Philip Bergman

31/01 2017

2.0.3

2.0.3.0

A refs plugin that will create refs from deploy

  Sources   Download

MIT

The Requires

 

by Philip Bergman

31/01 2017

2.0.2

2.0.2.0

A refs plugin that will create refs from deploy

  Sources   Download

MIT

The Requires

 

by Philip Bergman

24/01 2017

2.0.1

2.0.1.0

A refs plugin that will create refs from deploy

  Sources   Download

MIT

The Requires

 

by Philip Bergman

23/01 2017

2.0.0

2.0.0.0

A refs plugin that will create refs from deploy

  Sources   Download

MIT

The Requires

 

by Philip Bergman

18/01 2017

dev-master

9999999-dev

A refs plugin that will create refs from deploy

  Sources   Download

MIT

The Requires

 

by Philip Bergman

18/01 2017

1.0.3

1.0.3.0

A refs plugin that will create refs from deploy

  Sources   Download

MIT

The Requires

 

by Philip Bergman

18/01 2017

1.0.2

1.0.2.0

A refs plugin that will create refs from deploy

  Sources   Download

MIT

The Requires

 

by Philip Bergman

18/01 2017

1.0.1

1.0.1.0

A refs plugin that will create refs from deploy

  Sources   Download

MIT

The Requires

 

by Philip Bergman

26/10 2016

1.0.0

1.0.0.0

A refs plugin that will create refs from deploy

  Sources   Download

MIT

The Requires

 

by Philip Bergman