escualo 3.1.4 → 3.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/commands/remote.rb +3 -0
- data/lib/escualo/plugin/monit.rb +4 -1
- data/lib/escualo/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: 25702b3608854ac9ba6db4359cf5d7bad2b5c491
|
4
|
+
data.tar.gz: 7fbba7548552ec005a8a9425bf7bf4f3dac6221e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 24a3964d8355d6ffe880f2be20f6f8deb9d4cc34a8def439485663ffaef2d1b0e1c03ca0e3e772b01c79275673b3e1f45279d10c79e161d373a057a0870280a1
|
7
|
+
data.tar.gz: e521c436cc02360fbf00425f6c63c2092c63b208415b34cdc7f5cd79f2c3d1b38d3f0d68b7b0679aa5216994aeed5c9ae33eb324dab8507b0e3f8983147e7fb4
|
data/lib/commands/remote.rb
CHANGED
@@ -3,7 +3,10 @@ command 'remote attach' do |c|
|
|
3
3
|
c.description = "Adds the given artifact to current's repository"
|
4
4
|
c.option '--repo-path PATH', String, 'Sets the git dir'
|
5
5
|
|
6
|
+
|
6
7
|
c.local_session_action do |args, options, session|
|
8
|
+
raise 'missing service name!' unless args.first
|
9
|
+
|
7
10
|
options.default repo_path: Dir.pwd
|
8
11
|
session_options = Escualo::Session.parse_session_options options
|
9
12
|
|
data/lib/escualo/plugin/monit.rb
CHANGED
@@ -1,6 +1,8 @@
|
|
1
1
|
module Escualo::Plugin
|
2
2
|
class Monit
|
3
3
|
def run(session, options)
|
4
|
+
raise 'missing monit password!' unless options.monit_password
|
5
|
+
|
4
6
|
Escualo::AptGet.install session, 'monit'
|
5
7
|
|
6
8
|
session.tell_all! 'service monit stop',
|
@@ -8,6 +10,7 @@ module Escualo::Plugin
|
|
8
10
|
"wget https://mmonit.com/monit/dist/binary/5.16/monit-#{options.monit_version}-linux-x64.tar.gz",
|
9
11
|
"tar -xzf monit-#{options.monit_version}-linux-x64.tar.gz",
|
10
12
|
"cp monit-#{options.monit_version}/bin/monit /usr/bin/monit",
|
13
|
+
'rm -rf /etc/monitrc',
|
11
14
|
'ln -s /etc/monit/monitrc /etc/monitrc',
|
12
15
|
'service monit start',
|
13
16
|
"echo 'set httpd port 2812 and' > /etc/monit/conf.d/web-server",
|
@@ -20,4 +23,4 @@ module Escualo::Plugin
|
|
20
23
|
session.tell!('monit --version').include? 'This is Monit version 5' rescue false
|
21
24
|
end
|
22
25
|
end
|
23
|
-
end
|
26
|
+
end
|
data/lib/escualo/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: escualo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.1.
|
4
|
+
version: 3.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Franco Leonardo Bulgarelli
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-07-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: commander
|