perus 0.1.0 → 0.1.1

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
  SHA1:
3
- metadata.gz: 50163f19be6adf3f481d868e88b7efe33d563425
4
- data.tar.gz: 46fbde86dcfb9d0f6194849517f9b6bae81ec8cd
3
+ metadata.gz: 6c2a9dfa74d571f5e3606c2880f7627c3b517375
4
+ data.tar.gz: b1886d133049343030045f2d66d9399236c5b090
5
5
  SHA512:
6
- metadata.gz: 504e5ec4a3c322c18de258f2ee67eea50267bb82aff92473eca31b2205091b4058e16f1f3ef17a8d2581b536d0bf99fadd8b7eae87c3b6b0632a3f2aec87404a
7
- data.tar.gz: faa25da90c07daac501192daac00106c568ab73e177fa93578de5116abbb333f50697706d31e2fbf8ded7327c8709f4d0e38f5f656a06abcaa73b45980ba036b
6
+ metadata.gz: de5364f5fb8c3ae625a338796173747b23fdbe171eee0b66523aada3f41b53bb2e39fc692679fd095bb36fa4f5b5d169c5cd514f8b661bd770d1203cdccdb92d
7
+ data.tar.gz: c00611873d24559cac53083efd1dbd76dc6397f2f138ee8db5aea0d7522c3b2223bae81578fa9ce56a8a1f9efe8aaf00f49450ce6e4efff5c6ab229276ef3d6b
@@ -1,7 +1,9 @@
1
- require './perus/options'
2
- require './perus/pinger'
3
- require './perus/server'
4
- require './perus/version'
1
+ Dir.chdir(__dir__) do
2
+ require './perus/options'
3
+ require './perus/pinger'
4
+ require './perus/server'
5
+ require './perus/version'
6
+ end
5
7
 
6
8
  if ARGV[0] == 'server'
7
9
  Perus::Server::Server.new.run
@@ -14,6 +14,7 @@ module Perus
14
14
  require './pinger/commands/upload'
15
15
  require './pinger/commands/upgrade'
16
16
  require './pinger/commands/script'
17
+ require './pinger/commands/sleep'
17
18
 
18
19
  # metrics
19
20
  require './pinger/metrics/chrome'
@@ -0,0 +1,10 @@
1
+ module Perus::Pinger
2
+ class Sleep < Command
3
+ description 'Wait "duration" seconds before proceeding to the next command'
4
+ option :duration
5
+
6
+ def run
7
+ sleep(options.duration.to_i)
8
+ end
9
+ end
10
+ end
@@ -1,3 +1,3 @@
1
1
  module Perus
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
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: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Will Cannings
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-07-09 00:00:00.000000000 Z
11
+ date: 2015-07-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -239,6 +239,7 @@ files:
239
239
  - lib/perus/pinger/commands/replace.rb
240
240
  - lib/perus/pinger/commands/restart.rb
241
241
  - lib/perus/pinger/commands/script.rb
242
+ - lib/perus/pinger/commands/sleep.rb
242
243
  - lib/perus/pinger/commands/upgrade.rb
243
244
  - lib/perus/pinger/commands/upload.rb
244
245
  - lib/perus/pinger/metrics/chrome.rb