ro_daemon 0.0.5 → 0.0.6

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 87c65829ab5acd990578f1a53018098eab486159
4
- data.tar.gz: ff65f2ae0efd72a70065c8b9229dd5f87ae1efd7
3
+ metadata.gz: 5893d99ab0009f6673aa6912772cfd31f4770bd1
4
+ data.tar.gz: de7d9baa049f1001964edd59145c9c15038a9ee2
5
5
  SHA512:
6
- metadata.gz: 1c502273d0899222ffae5766410116c3454b7b6e636bd7aa18177312dab9abea5c6b66ab69a4f4cd903dea20d2a897e434ec2b291dc784006297213802f7c1fb
7
- data.tar.gz: bbbf1d23a3e2422d91a7302f28cdf293bfc4ea821937af3e1eda7909e193cef2c1380d5e719e922f932409490c2e592e46bc9ea87039c59653ee4b40f4df2ba1
6
+ metadata.gz: 5e62dd14d3d524f85eebdfe50a5a88593bfe3ab9a6f90d65cef72b4b19b789048f564e303154d9722909a8b1bbc7190b83dbdc4a07d36011a172601888267dc9
7
+ data.tar.gz: f53ccde697b703fbc072679c27f445ce090010735f489d87473a41d2d54d7adcecbf7010c82689e40d90f6ec3d636b07366b1ce182233317d8f25608199f82fe
@@ -0,0 +1,22 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ ENV['ro_stage'] = 'test'
4
+ ENV['RO_RT'] = File.expand_path("../..", __FILE__)
5
+
6
+ require 'bundler'
7
+
8
+ Bundler.require
9
+
10
+ require File.expand_path('../../conf/ro_daemon.rb', __FILE__)
11
+
12
+ begin
13
+ require File.expand_path('../../lib/ro_cell/spork', __FILE__)
14
+ rescue LoadError
15
+ require 'ro_cell/spork'
16
+ end
17
+
18
+ $LOAD_PATH.unshift(File.expand_path('../../spec', __FILE__))
19
+
20
+ Dir.chdir(ENV['RO_RT'])
21
+
22
+ ::RoCell::Spork.new.flow
data/bin/ro_rspec ADDED
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ Dir.chdir(File.expand_path("../..", __FILE__))
4
+
5
+ load '/home/roroco/Dropbox/rbs/ro_cmds/lib/ro_cell/rspec.rb'
6
+
7
+ ::RoCell::Rspec.new.flow
data/lib/ro_daemon/rmt.rb CHANGED
@@ -25,6 +25,19 @@ module RoDaemon
25
25
  end
26
26
 
27
27
  def daemonize(cmd, *args, &blk)
28
+ begin
29
+ _daemonize(cmd, *args, &blk)
30
+ rescue ::RoErr::RmtErr => e
31
+ if e.match(%r{ro_daemonize: command not found})
32
+ sh 'sudo gem install ro_daemon'
33
+ _daemonize(cmd, *args, &blk)
34
+ else
35
+ raise e
36
+ end
37
+ end
38
+ end
39
+
40
+ def _daemonize(cmd, *args, &blk)
28
41
  sh "cd #{pj}; ro_daemonize #{cmd}"
29
42
  end
30
43
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ro_daemon
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - ''
@@ -55,11 +55,14 @@ dependencies:
55
55
  description: ''
56
56
  email:
57
57
  - ''
58
- executables: []
58
+ executables:
59
+ - ro_daemonize
59
60
  extensions: []
60
61
  extra_rdoc_files: []
61
62
  files:
63
+ - bin/ro_daemon_ro_spork
62
64
  - bin/ro_daemonize
65
+ - bin/ro_rspec
63
66
  - lib/ro_daemon/daemon.rb
64
67
  - lib/ro_daemon/data.rb
65
68
  - lib/ro_daemon/helper.rb