workmesh 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/deployment-routines/update-config.rb +18 -0
- data/deployment-routines/update-source.rb +48 -0
- metadata +3 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 41375949fd691423ac3b677de62b756450c29f1992fdf032667de7d10beaf092
|
4
|
+
data.tar.gz: 32c1dbeef3502c7a4fe23dfc555adaa507a48a3e8b14e26cf849215a2e6a964a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d2c231f9d54f104e16a11308e4060c805763973d5d188f58dba6b5d6af87e5db3206e0bb21d105518f2627bef7227d155e1036623a99246deeed4716636b8152
|
7
|
+
data.tar.gz: 2bda3a87ccab98c3d6df49b6ec578c40d69f29bb25b8a4cf2910cd9fb38a00b24cc73d987bf374c0fe81ab3e00d0144f0aa3d6a4ef764fabb8034d6ca129a9d9
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# setup deploying rutines
|
2
|
+
BlackStack::Deployer::add_routine({
|
3
|
+
:name => 'workmesh-update-config',
|
4
|
+
:commands => [
|
5
|
+
{
|
6
|
+
# back up old configuration file
|
7
|
+
# upload configuration file from local working directory to remote server
|
8
|
+
:command => "
|
9
|
+
cd ~/code/%workmesh_service%;
|
10
|
+
mv ./config.rb ./config.%timestamp%.rb;
|
11
|
+
echo \"%config_rb_content%\" > ./config.rb;
|
12
|
+
",
|
13
|
+
#:matches => [ /^$/, /mv: cannot stat '\.\/config.rb': No such file or directory/ ],
|
14
|
+
#:nomatches => [ { :nomatch => /.+/, :error_description => 'No output expected.' } ],
|
15
|
+
:sudo => false,
|
16
|
+
},
|
17
|
+
],
|
18
|
+
});
|
@@ -0,0 +1,48 @@
|
|
1
|
+
# setup deploying rutines
|
2
|
+
BlackStack::Deployer::add_routine({
|
3
|
+
:name => 'workmesh-update-source',
|
4
|
+
:commands => [
|
5
|
+
{
|
6
|
+
:command => 'mkdir ~/code;',
|
7
|
+
:matches => [ /^$/i, /File exists/i ],
|
8
|
+
:sudo => false,
|
9
|
+
}, {
|
10
|
+
:command => '
|
11
|
+
cd ~/code;
|
12
|
+
git clone https://github.com/%git_user%/%workmesh_service%;
|
13
|
+
',
|
14
|
+
:matches => [
|
15
|
+
/already exists and is not an empty directory/i,
|
16
|
+
/Cloning into/i,
|
17
|
+
/Resolving deltas\: 100\% \((\d)+\/(\d)+\), done\./i,
|
18
|
+
/fatal\: destination path \'.+\' already exists and is not an empty directory\./i,
|
19
|
+
],
|
20
|
+
:nomatches => [ # no output means success.
|
21
|
+
{ :nomatch => /error/i, :error_description => 'An Error Occurred' },
|
22
|
+
],
|
23
|
+
:sudo => false,
|
24
|
+
}, {
|
25
|
+
:command => '
|
26
|
+
cd ~/code/%workmesh_service%;
|
27
|
+
git fetch --all;
|
28
|
+
',
|
29
|
+
:matches => [/\-> origin\//, /^Fetching origin$/],
|
30
|
+
:nomatches => [ { :nomatch => /error/i, :error_description => 'An error ocurred.' } ],
|
31
|
+
:sudo => false,
|
32
|
+
}, {
|
33
|
+
:command => '
|
34
|
+
cd ~/code/%workmesh_service%;
|
35
|
+
git reset --hard origin/%git_branch%;
|
36
|
+
',
|
37
|
+
:matches => /HEAD is now at/,
|
38
|
+
:sudo => false,
|
39
|
+
}, {
|
40
|
+
#
|
41
|
+
:command => 'export RUBYLIB=~/code/%workmesh_service%;',
|
42
|
+
:nomatches => [
|
43
|
+
{ :nomatch => /.+/i, :error_description => 'No output expected' },
|
44
|
+
],
|
45
|
+
:sudo => false,
|
46
|
+
}
|
47
|
+
],
|
48
|
+
});
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: workmesh
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Leandro Daniel Sardi
|
@@ -144,6 +144,8 @@ executables: []
|
|
144
144
|
extensions: []
|
145
145
|
extra_rdoc_files: []
|
146
146
|
files:
|
147
|
+
- deployment-routines/update-config.rb
|
148
|
+
- deployment-routines/update-source.rb
|
147
149
|
- lib/workmesh.rb
|
148
150
|
homepage: https://rubygems.org/gems/workmesh
|
149
151
|
licenses:
|