ro_rmt 0.0.2

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.
Files changed (71) hide show
  1. checksums.yaml +7 -0
  2. data/README.md +91 -0
  3. data/conf/ro_rmt.rb +203 -0
  4. data/conf/rsync/exclude_patterns +4 -0
  5. data/conf/rsync/include_patterns +10 -0
  6. data/lib/ro_cell/rmt.rb +254 -0
  7. data/lib/ro_cell/rmt/dir.rb +55 -0
  8. data/lib/ro_cell/rmt/file.rb +96 -0
  9. data/lib/ro_cell/rmt/opts.rb +21 -0
  10. data/lib/ro_cell/rmt/se_mgr.rb +51 -0
  11. data/lib/ro_cell/tmp/ro.log +49 -0
  12. data/lib/ro_cmd/ci.rb +32 -0
  13. data/lib/ro_cmd/rmt_base.rb +132 -0
  14. data/lib/ro_cmd/rmt_rspec.rb +26 -0
  15. data/lib/ro_helper/dp.rb +20 -0
  16. data/lib/ro_helper/rmt/basic.rb +441 -0
  17. data/lib/ro_helper/rmt/compress.rb +31 -0
  18. data/lib/ro_helper/rmt/determinations.rb +25 -0
  19. data/lib/ro_helper/rmt/dir.rb +11 -0
  20. data/lib/ro_helper/rmt/file.rb +13 -0
  21. data/lib/ro_helper/rmt/file_dir.rb +60 -0
  22. data/lib/ro_helper/rmt/process.rb +46 -0
  23. data/lib/ro_helper/rmt/rb.rb +131 -0
  24. data/lib/ro_helper/rmt/scp.rb +117 -0
  25. data/lib/ro_helper/rmt/se_attrs.rb +28 -0
  26. data/lib/ro_rmt.rb +9 -0
  27. data/lib/ro_rmt_ro_cmds_bin.rb +4 -0
  28. data/lib/ro_rspec_helper/rmt_rspec_helper.rb +82 -0
  29. data/lib/ro_script/kill_port.rb +49 -0
  30. data/lib/ro_script/pgrep.rb +44 -0
  31. data/lib/ro_script/pkill.rb +51 -0
  32. data/lib/ro_script/try.rb +0 -0
  33. data/lib/tts/nginx.conf.erb +148 -0
  34. data/spec/fixtures/ro_bin_helper/Gemfile +2 -0
  35. data/spec/fixtures/ro_bin_helper/gem1/lib/ro_cmd/cmd1.rb +0 -0
  36. data/spec/fixtures/ro_bin_helper/gem1/lib/ro_cmd/cmd2.rb +0 -0
  37. data/spec/fixtures/ro_bin_helper/gem2/lib/ro_cmd/cmd1.rb +0 -0
  38. data/spec/fixtures/ro_bin_helper/gem2/lib/ro_cmd/cmd2.rb +0 -0
  39. data/spec/fixtures/scp/log/scp_rspec_err.log +216 -0
  40. data/spec/fixtures/scp/tmp/ro.log +110 -0
  41. data/spec/fixtures/scp/tmp/ro_cell__pl__sv__st_event.log +7 -0
  42. data/spec/fixtures/scp/tmp/roroco/at/localhost/home/roroco/try/try_ro_rmt.rb +1 -0
  43. data/spec/fixtures/se_mgr/log/se_mgr_rspec_err.log +207 -0
  44. data/spec/fixtures/se_mgr/tmp/ro.log +1194 -0
  45. data/spec/fixtures/se_mgr/tmp/ro_cell__pl__sv__st_event.log +7 -0
  46. data/spec/helpers/articles_helper_spec.rb +15 -0
  47. data/spec/lib/ro_cell/rmt/dir_spec.rb +22 -0
  48. data/spec/lib/ro_cell/rmt/file_spec.rb +32 -0
  49. data/spec/lib/ro_cell/rmt/se_mgr_spec.rb +33 -0
  50. data/spec/lib/ro_cell/rmt_spec.rb +113 -0
  51. data/spec/lib/ro_dp/cap_spec.rb +34 -0
  52. data/spec/lib/ro_dp/rbenv_spec.rb +10 -0
  53. data/spec/lib/ro_dp/system_spec.rb +31 -0
  54. data/spec/lib/ro_helper/rmt/basic_spec.rb +41 -0
  55. data/spec/lib/ro_helper/rmt/cf_spec.rb +17 -0
  56. data/spec/lib/ro_helper/rmt/determinations_spec.rb +11 -0
  57. data/spec/lib/ro_helper/rmt/dir_spec.rb +15 -0
  58. data/spec/lib/ro_helper/rmt/file_dir_helper_spec.rb +11 -0
  59. data/spec/lib/ro_helper/rmt/file_spec.rb +23 -0
  60. data/spec/lib/ro_helper/rmt/process_spec.rb +29 -0
  61. data/spec/lib/ro_helper/rmt/rb_spec.rb +13 -0
  62. data/spec/lib/ro_helper/rmt/scp_spec.rb +21 -0
  63. data/spec/lib/ro_script/pgrep_spec.rb +18 -0
  64. data/spec/lib/ro_sv_try/1.rb +0 -0
  65. data/spec/lib/ro_sv_try/2.rb +0 -0
  66. data/spec/lib/ro_sv_try/3.rb +0 -0
  67. data/spec/lib/ro_sv_try/tmp/rspec_guard_result +9 -0
  68. data/spec/rails_helper.rb +1 -0
  69. data/spec/spec_helper.rb +35 -0
  70. data/spec/wio_spork.rb +10 -0
  71. metadata +177 -0
@@ -0,0 +1,13 @@
1
+ require 'rails_helper'
2
+
3
+ describe "" do
4
+ let(:o) do
5
+ rmt
6
+ end
7
+
8
+ it :eval_script do
9
+ r = o.eval_script("try")
10
+ end
11
+ end
12
+
13
+
@@ -0,0 +1,21 @@
1
+ require 'rails_helper'
2
+
3
+ describe "RoCell::Rmt.new" do
4
+ let(:o) do
5
+ rmt
6
+ end
7
+
8
+ before(:each) do
9
+ cdfix "scp"
10
+ end
11
+
12
+ it :down_to_tmp do
13
+ result = o.send(:down_to_tmp, try_file)
14
+ end
15
+
16
+ it :up_tmp do
17
+ o.down_to_tmp try_file
18
+ rmt_file = o.send(:up_tmp, try_file)
19
+ result = o.exist_file?(rmt_file)
20
+ end
21
+ end
@@ -0,0 +1,18 @@
1
+ require 'rails_helper'
2
+ require 'ro_script/pgrep'
3
+
4
+
5
+
6
+
7
+ describe "RoScript::Pgrep.new" do
8
+ let(:o) do
9
+ RoScript::Pgrep.new
10
+ end
11
+
12
+ it :st do
13
+ r = o.st "nginx"
14
+ expect(r).to be_kind_of Array
15
+ Out.out "#{__FILE__}:#{__LINE__}"
16
+ Out.out r
17
+ end
18
+ end
File without changes
File without changes
File without changes
@@ -0,0 +1,9 @@
1
+ /home/zxr/Dropbox/ruby_project/ro_deploy/spec/lib/ro_deploy/utils/rbenv_spec.rb:11
2
+ /home/zxr/Dropbox/ruby_project/ro_deploy/spec/lib/ro_deploy/utils/debug_spec.rb:6
3
+ /home/zxr/Dropbox/ruby_project/ro_deploy/spec/lib/ro_deploy/utils/nginx_spec.rb:44
4
+ /home/zxr/Dropbox/ruby_project/ro_deploy/spec/lib/ro_deploy/utils/nginx_spec.rb:40
5
+ /home/zxr/Dropbox/ruby_project/ro_deploy/spec/lib/ro_deploy/utils/nginx_spec.rb:9
6
+ /home/zxr/Dropbox/ruby_project/ro_deploy/spec/lib/ro_deploy/utils/nginx_spec.rb:36
7
+ /home/zxr/Dropbox/ruby_project/ro_deploy/spec/lib/ro_deploy/utils/remote_spec.rb:8
8
+ /home/zxr/Dropbox/ruby_project/ro_deploy/spec/lib/ro_deploy/utils/dep_spec.rb:7
9
+ /home/zxr/Dropbox/ruby_project/ro_deploy/spec/lib/ro_deploy_spec.rb:12
@@ -0,0 +1 @@
1
+ require_relative 'spec_helper'
@@ -0,0 +1,35 @@
1
+ require 'rubygems'
2
+ require 'spork'
3
+ #uncomment the following line to use spork with the debugger
4
+ #require 'spork/ext/ruby-debug'
5
+
6
+ Spork.prefork do
7
+ require File.expand_path('../../conf/ro_rmt', __FILE__)
8
+
9
+ # Loading more in this block will cause your tests to run faster. However,
10
+ # if you change any configuration or code from libraries loaded here, you'll
11
+ # need to restart spork for it take effect.
12
+ # This file is copied to spec/ when you run 'rails generate rspec:install'
13
+ require 'pj'
14
+ Pj.test?
15
+
16
+ require 'ro_helpers'
17
+ require 'ro_rspec_helpers_plus'
18
+ RoRspec.spec = __dir__
19
+ # end
20
+ #
21
+ # Spork.each_run do
22
+ # This code will be run each time you run your spec.
23
+ load "lib/ro_rmt.rb"
24
+
25
+ RoRmt.require_all('ro_rspec_helper')
26
+
27
+ RSpec.configure do |config|
28
+ config.before(:all) do
29
+ load "ro_cell/rmt.rb"
30
+ rm_try_files
31
+ create_try_files
32
+ end
33
+ end
34
+ end
35
+
@@ -0,0 +1,10 @@
1
+ class WioSpork
2
+ class << self
3
+ def rules
4
+ # re arr
5
+ [
6
+ %r{process\_spec\.rb$}
7
+ ]
8
+ end
9
+ end
10
+ end
metadata ADDED
@@ -0,0 +1,177 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: ro_rmt
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.2
5
+ platform: ruby
6
+ authors:
7
+ - ro
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2015-02-26 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rails
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: net-scp
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ description: ''
42
+ email:
43
+ - ''
44
+ executables: []
45
+ extensions: []
46
+ extra_rdoc_files: []
47
+ files:
48
+ - README.md
49
+ - conf/ro_rmt.rb
50
+ - conf/rsync/exclude_patterns
51
+ - conf/rsync/include_patterns
52
+ - lib/ro_cell/rmt.rb
53
+ - lib/ro_cell/rmt/dir.rb
54
+ - lib/ro_cell/rmt/file.rb
55
+ - lib/ro_cell/rmt/opts.rb
56
+ - lib/ro_cell/rmt/se_mgr.rb
57
+ - lib/ro_cell/tmp/ro.log
58
+ - lib/ro_cmd/ci.rb
59
+ - lib/ro_cmd/rmt_base.rb
60
+ - lib/ro_cmd/rmt_rspec.rb
61
+ - lib/ro_helper/dp.rb
62
+ - lib/ro_helper/rmt/basic.rb
63
+ - lib/ro_helper/rmt/compress.rb
64
+ - lib/ro_helper/rmt/determinations.rb
65
+ - lib/ro_helper/rmt/dir.rb
66
+ - lib/ro_helper/rmt/file.rb
67
+ - lib/ro_helper/rmt/file_dir.rb
68
+ - lib/ro_helper/rmt/process.rb
69
+ - lib/ro_helper/rmt/rb.rb
70
+ - lib/ro_helper/rmt/scp.rb
71
+ - lib/ro_helper/rmt/se_attrs.rb
72
+ - lib/ro_rmt.rb
73
+ - lib/ro_rmt_ro_cmds_bin.rb
74
+ - lib/ro_rspec_helper/rmt_rspec_helper.rb
75
+ - lib/ro_script/kill_port.rb
76
+ - lib/ro_script/pgrep.rb
77
+ - lib/ro_script/pkill.rb
78
+ - lib/ro_script/try.rb
79
+ - lib/tts/nginx.conf.erb
80
+ - spec/fixtures/ro_bin_helper/Gemfile
81
+ - spec/fixtures/ro_bin_helper/gem1/lib/ro_cmd/cmd1.rb
82
+ - spec/fixtures/ro_bin_helper/gem1/lib/ro_cmd/cmd2.rb
83
+ - spec/fixtures/ro_bin_helper/gem2/lib/ro_cmd/cmd1.rb
84
+ - spec/fixtures/ro_bin_helper/gem2/lib/ro_cmd/cmd2.rb
85
+ - spec/fixtures/scp/log/scp_rspec_err.log
86
+ - spec/fixtures/scp/tmp/ro.log
87
+ - spec/fixtures/scp/tmp/ro_cell__pl__sv__st_event.log
88
+ - spec/fixtures/scp/tmp/roroco/at/localhost/home/roroco/try/try_ro_rmt.rb
89
+ - spec/fixtures/se_mgr/log/se_mgr_rspec_err.log
90
+ - spec/fixtures/se_mgr/tmp/ro.log
91
+ - spec/fixtures/se_mgr/tmp/ro_cell__pl__sv__st_event.log
92
+ - spec/helpers/articles_helper_spec.rb
93
+ - spec/lib/ro_cell/rmt/dir_spec.rb
94
+ - spec/lib/ro_cell/rmt/file_spec.rb
95
+ - spec/lib/ro_cell/rmt/se_mgr_spec.rb
96
+ - spec/lib/ro_cell/rmt_spec.rb
97
+ - spec/lib/ro_dp/cap_spec.rb
98
+ - spec/lib/ro_dp/rbenv_spec.rb
99
+ - spec/lib/ro_dp/system_spec.rb
100
+ - spec/lib/ro_helper/rmt/basic_spec.rb
101
+ - spec/lib/ro_helper/rmt/cf_spec.rb
102
+ - spec/lib/ro_helper/rmt/determinations_spec.rb
103
+ - spec/lib/ro_helper/rmt/dir_spec.rb
104
+ - spec/lib/ro_helper/rmt/file_dir_helper_spec.rb
105
+ - spec/lib/ro_helper/rmt/file_spec.rb
106
+ - spec/lib/ro_helper/rmt/process_spec.rb
107
+ - spec/lib/ro_helper/rmt/rb_spec.rb
108
+ - spec/lib/ro_helper/rmt/scp_spec.rb
109
+ - spec/lib/ro_script/pgrep_spec.rb
110
+ - spec/lib/ro_sv_try/1.rb
111
+ - spec/lib/ro_sv_try/2.rb
112
+ - spec/lib/ro_sv_try/3.rb
113
+ - spec/lib/ro_sv_try/tmp/rspec_guard_result
114
+ - spec/rails_helper.rb
115
+ - spec/spec_helper.rb
116
+ - spec/wio_spork.rb
117
+ homepage: ''
118
+ licenses: []
119
+ metadata: {}
120
+ post_install_message:
121
+ rdoc_options: []
122
+ require_paths:
123
+ - lib
124
+ required_ruby_version: !ruby/object:Gem::Requirement
125
+ requirements:
126
+ - - ">="
127
+ - !ruby/object:Gem::Version
128
+ version: '0'
129
+ required_rubygems_version: !ruby/object:Gem::Requirement
130
+ requirements:
131
+ - - ">="
132
+ - !ruby/object:Gem::Version
133
+ version: '0'
134
+ requirements: []
135
+ rubyforge_project:
136
+ rubygems_version: 2.4.5
137
+ signing_key:
138
+ specification_version: 4
139
+ summary: ''
140
+ test_files:
141
+ - spec/lib/ro_dp/rbenv_spec.rb
142
+ - spec/lib/ro_dp/system_spec.rb
143
+ - spec/lib/ro_dp/cap_spec.rb
144
+ - spec/lib/ro_cell/rmt_spec.rb
145
+ - spec/lib/ro_cell/rmt/dir_spec.rb
146
+ - spec/lib/ro_cell/rmt/file_spec.rb
147
+ - spec/lib/ro_cell/rmt/se_mgr_spec.rb
148
+ - spec/lib/ro_script/pgrep_spec.rb
149
+ - spec/lib/ro_sv_try/tmp/rspec_guard_result
150
+ - spec/lib/ro_sv_try/3.rb
151
+ - spec/lib/ro_sv_try/2.rb
152
+ - spec/lib/ro_sv_try/1.rb
153
+ - spec/lib/ro_helper/rmt/dir_spec.rb
154
+ - spec/lib/ro_helper/rmt/scp_spec.rb
155
+ - spec/lib/ro_helper/rmt/basic_spec.rb
156
+ - spec/lib/ro_helper/rmt/process_spec.rb
157
+ - spec/lib/ro_helper/rmt/cf_spec.rb
158
+ - spec/lib/ro_helper/rmt/file_spec.rb
159
+ - spec/lib/ro_helper/rmt/determinations_spec.rb
160
+ - spec/lib/ro_helper/rmt/rb_spec.rb
161
+ - spec/lib/ro_helper/rmt/file_dir_helper_spec.rb
162
+ - spec/spec_helper.rb
163
+ - spec/helpers/articles_helper_spec.rb
164
+ - spec/rails_helper.rb
165
+ - spec/wio_spork.rb
166
+ - spec/fixtures/se_mgr/tmp/ro.log
167
+ - spec/fixtures/se_mgr/tmp/ro_cell__pl__sv__st_event.log
168
+ - spec/fixtures/se_mgr/log/se_mgr_rspec_err.log
169
+ - spec/fixtures/scp/tmp/ro.log
170
+ - spec/fixtures/scp/tmp/ro_cell__pl__sv__st_event.log
171
+ - spec/fixtures/scp/tmp/roroco/at/localhost/home/roroco/try/try_ro_rmt.rb
172
+ - spec/fixtures/scp/log/scp_rspec_err.log
173
+ - spec/fixtures/ro_bin_helper/gem2/lib/ro_cmd/cmd2.rb
174
+ - spec/fixtures/ro_bin_helper/gem2/lib/ro_cmd/cmd1.rb
175
+ - spec/fixtures/ro_bin_helper/gem1/lib/ro_cmd/cmd2.rb
176
+ - spec/fixtures/ro_bin_helper/gem1/lib/ro_cmd/cmd1.rb
177
+ - spec/fixtures/ro_bin_helper/Gemfile