workmesh 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 729804b3c48a7bdc88018de15bb49f297da200e310ebd306d2f4f75bb8832d3d
4
- data.tar.gz: 4477a6b46a6e2ee01ba3576b722d5ffcde51b1128b7c916f1875e9b9f59e3305
3
+ metadata.gz: ee3f20e4b481d2e2fc30fc910f779a7d814126cbfbda63f8fa3d183bf2d61a39
4
+ data.tar.gz: 8c4c4ee4cb1960fd50952665d1e6d4569fe3ad35337d003c2cc25da11f59ee68
5
5
  SHA512:
6
- metadata.gz: 7306d782ff3a70b3e0e13f6436b9035e72e00b99d52103888d08713851af0685e06c31b62066c3f49b5452088498361632b1c0b6af6aa01a162f7cc90a5ba3ed
7
- data.tar.gz: e9af5b428c21d0b6aa5ec5070a3a20121c54c4a9006893a1bef0e0a268efc7834b2ea8b78d5fa0e5e4c4d68ef3353727a8ea16fc3c2006ea39f4e4763fc9ba2e
6
+ metadata.gz: a0bbefe43127da3537b45f65df0c9e0b142a5371c28ab884fc0555e6ca2bf2f86e051f4b99c4bc8ac420753ae6c0893cba7235a327a9b5da27867d465d2ecc91
7
+ data.tar.gz: 56de7f81fcfd2fb1dec459d4c4ebe3c42c4a7bf41da2539c31dd946da562d0f83fac9b97ea88661861dfff471f06d84df9747e7bb1efdac3da34657cce6c8c5e
@@ -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.1
4
+ version: 1.0.2
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: