perus 1.0.6 → 1.0.7

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: 87caae4df623f78890eefdc0a6c7776d46f4a35e2695dea857b3d4259c42dfc5
4
- data.tar.gz: ff775d43d444a779d0f432252066eada54ae194d638a328abe030e9a96c0a153
3
+ metadata.gz: df4ce5229a3b9fd5cbc92f3a9105347d6714c92dc55ddb0f9105cecf77023767
4
+ data.tar.gz: 8ad4ddd70b9f80542df426b80adf7677ecfe1c7f3256908101bed18d7f3fc0f2
5
5
  SHA512:
6
- metadata.gz: 822f821316098ac6bca1db36bffa87b6fa3f7d23080c686cecfb29c126d792dd046a7c19f54ecb6a849291dce9809708d167bf24956c4fe05155e09b70cb3a03
7
- data.tar.gz: 8eb3e6df3782997f0db6a6cc0ef20f3e2fad11bf75867f9c2c34b0f7918946713e8cda597dc844261d1da7bd1917c606ef1a8e95d43c5a04d4ca96b8356e330c
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: true
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: true
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: true
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: true
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: true
6
+ option :process_path, restricted: false
7
7
  metric!
8
8
 
9
9
  def run
@@ -1,3 +1,3 @@
1
1
  module Perus
2
- VERSION = "1.0.6"
2
+ VERSION = "1.0.7"
3
3
  end
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.6
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-07-30 00:00:00.000000000 Z
11
+ date: 2020-08-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler