mina-lock 0.0.4 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +0 -4
- data/lib/mina/lock/tasks.rb +4 -2
- data/lib/mina/lock/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e79325b230c4d88696545f6435d49ef9f906e330
|
4
|
+
data.tar.gz: 51a78f938e1cbd4b61fecca1d003eb3508baa575
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7ee93350acba6e659a6cd62a0f1001c2ed09d65acfe4d4f4bd6fb87c7c70da092236a09aac412f4c00ced3d6f32013e206c13f10672d28ea54005338074e614e
|
7
|
+
data.tar.gz: 3831f7427f5d751bbf44d04d7d13ef132ba69e2d04be8479421000b0acc63a3cfe0cdcf566f4f0ce2876e3c6ce7cf895e2790bf2038e79f05bdd46b9ec3110f4
|
data/README.md
CHANGED
@@ -41,10 +41,6 @@ mina lock:deployment # Locks the deployment
|
|
41
41
|
mina unlock:deployment # Unlocks the deployment
|
42
42
|
```
|
43
43
|
|
44
|
-
## TODOs
|
45
|
-
|
46
|
-
- write in the lock file the name of the user who locked the deployment (reading it from the context)
|
47
|
-
|
48
44
|
## Contributing
|
49
45
|
|
50
46
|
Feel free to contribute!
|
data/lib/mina/lock/tasks.rb
CHANGED
@@ -1,10 +1,12 @@
|
|
1
1
|
require 'mina/bundler'
|
2
2
|
|
3
|
+
set :lock_user, ENV['USER']
|
4
|
+
|
3
5
|
namespace :lock do
|
4
6
|
desc 'Lock deployment'
|
5
7
|
task deployment: :environment do
|
6
8
|
queue %[echo '-----> Locking deployment (manually)']
|
7
|
-
queue! "
|
9
|
+
queue! "echo \"The deployment of this project was locked by #{lock_user} at $(date). Run mina unlock:deployment\" > #{deploy_to}/#{current_path}/deployment.lock"
|
8
10
|
end
|
9
11
|
end
|
10
12
|
|
@@ -24,7 +26,7 @@ namespace :fail do
|
|
24
26
|
FILE=#{deploy_to}/#{current_path}/deployment.lock
|
25
27
|
if [ -f "$FILE" ];
|
26
28
|
then
|
27
|
-
|
29
|
+
cat $FILE
|
28
30
|
exit 17
|
29
31
|
fi
|
30
32
|
]
|
data/lib/mina/lock/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mina-lock
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lorenzo Sinisi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-03-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|