perus 1.0.6 → 1.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/perus/pinger/commands/remove_path.rb +1 -1
- data/lib/perus/pinger/commands/run_installed_command.rb +1 -1
- data/lib/perus/pinger/commands/upstart_start.rb +1 -1
- data/lib/perus/pinger/commands/upstart_stop.rb +1 -1
- data/lib/perus/pinger/metrics/running.rb +1 -1
- data/lib/perus/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: df4ce5229a3b9fd5cbc92f3a9105347d6714c92dc55ddb0f9105cecf77023767
|
|
4
|
+
data.tar.gz: 8ad4ddd70b9f80542df426b80adf7677ecfe1c7f3256908101bed18d7f3fc0f2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f1ede48efa2ec9903ca2ae2a431d32061c5baec5b8c313895ab17ff0c42b11c2842e86b0c246d7ae86d41d3276049ab95ed6fe36e92bd1a6c1617d633f9caf4f
|
|
7
|
+
data.tar.gz: 498318d3b3f91988175328c563121e60d49d13108ec7c169cedfd4a50186f62d6e8bcf63a47bbcf904d064b8537b88a2e6a4092e679538316585559b65ffd954
|
|
@@ -5,7 +5,7 @@ module Perus::Pinger
|
|
|
5
5
|
description 'Deletes a file or folder. If "path" is a folder, all files
|
|
6
6
|
and folders within the folder are deleted as well. Valid
|
|
7
7
|
values for "path" are contained in the pinger config file.'
|
|
8
|
-
option :path, restricted:
|
|
8
|
+
option :path, restricted: false
|
|
9
9
|
|
|
10
10
|
def run
|
|
11
11
|
FileUtils.rm_rf([File.expand_path(options.path)], secure: true)
|
|
@@ -2,7 +2,7 @@ module Perus::Pinger
|
|
|
2
2
|
class RunInstalledCommand < Command
|
|
3
3
|
description 'Run the command specified with "path". Valid values for
|
|
4
4
|
"path" are contained in the pinger config file.'
|
|
5
|
-
option :path, restricted:
|
|
5
|
+
option :path, restricted: false
|
|
6
6
|
|
|
7
7
|
def run
|
|
8
8
|
shell(options.path)
|
|
@@ -2,7 +2,7 @@ module Perus::Pinger
|
|
|
2
2
|
class UpstartStart < Command
|
|
3
3
|
description 'Start the upstart job specified with "job". Valid values
|
|
4
4
|
for "job" are contained in the pinger config file.'
|
|
5
|
-
option :job, restricted:
|
|
5
|
+
option :job, restricted: false
|
|
6
6
|
|
|
7
7
|
def run
|
|
8
8
|
result = shell("sudo start #{options.job}")
|
|
@@ -2,7 +2,7 @@ module Perus::Pinger
|
|
|
2
2
|
class UpstartStop < Command
|
|
3
3
|
description 'Stop the upstart job specified with "job". Valid values
|
|
4
4
|
for "job" are contained in the pinger config file.'
|
|
5
|
-
option :job, restricted:
|
|
5
|
+
option :job, restricted: false
|
|
6
6
|
|
|
7
7
|
def run
|
|
8
8
|
result = shell("sudo stop #{options.job}")
|
|
@@ -3,7 +3,7 @@ module Perus::Pinger
|
|
|
3
3
|
description 'Reports "yes" if "process_path" is running, "no"
|
|
4
4
|
otherwise. Valid values for "process_path" are contained
|
|
5
5
|
in the pinger config file.'
|
|
6
|
-
option :process_path, restricted:
|
|
6
|
+
option :process_path, restricted: false
|
|
7
7
|
metric!
|
|
8
8
|
|
|
9
9
|
def run
|
data/lib/perus/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: perus
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.7
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Will Cannings
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-
|
|
11
|
+
date: 2020-08-06 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|