redirus 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,29 @@
1
+ start on starting redirus
2
+ stop on stopping redirus
3
+ respawn
4
+
5
+ setuid CHANGEME_USER_NAME
6
+
7
+ script
8
+ # this script runs in /bin/sh by default
9
+ # respawn as bash so we can source in rbenv
10
+ exec /bin/bash <<EOT
11
+ # uncomment to use syslog for logging
12
+ # exec &> /dev/kmsg
13
+
14
+ # Pick your poison :) Or none if you're using a system wide installed Ruby.
15
+ # rbenv
16
+ # export PATH="CHANGEME/.rbenv/bin:/home/atmosphere/.rbenv/shims:$PATH"
17
+ # source $HOME/.bash_profile
18
+ # OR
19
+ # source /home/apps/.profile
20
+ # OR system:
21
+ # source /etc/profile.d/rbenv.sh
22
+ #
23
+ # rvm
24
+ # source /home/apps/.rvm/scripts/rvm
25
+
26
+ exec redirus -c CHANGEME/redirus/config.yml >> CHANGEME/redirus/log/redirus-worker.log 2>&1
27
+ EOT
28
+ end script
29
+
@@ -0,0 +1,15 @@
1
+ pre-start script
2
+ mkdir -p CHANGEME/redirus/log
3
+ chown -R CHANGEME_USER_NAME CHANGEME/redirus/log
4
+
5
+ mkdir -p CHANGEME_NGINX_CONFIGS/configs
6
+ chown -R CHANGEME_USER_NAME CHANGEME_NGINX_CONFIGS/configs
7
+ end script
8
+ start on (started network-interface
9
+ or started network-manager
10
+ or started networking)
11
+
12
+ stop on (stopping network-interface
13
+ or stopping network-manager
14
+ or stopping networking)
15
+
metadata ADDED
@@ -0,0 +1,185 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: redirus
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Marek Kasztelnik
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-10-14 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: sidekiq
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: bundler
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - '>='
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - '>='
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rake
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - '>='
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: guard-rspec
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - '>='
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: shoulda-matchers
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - '>='
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - '>='
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: rspec-sidekiq
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - '>='
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - '>='
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: coveralls
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - '>='
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - '>='
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ description: Redirus
112
+ email:
113
+ - mkasztelnik@gmail.com
114
+ executables:
115
+ - redirus
116
+ - redirus-client
117
+ extensions: []
118
+ extra_rdoc_files: []
119
+ files:
120
+ - .gitignore
121
+ - .rspec
122
+ - .ruby-version
123
+ - .travis.yml
124
+ - CHANGELOG
125
+ - Gemfile
126
+ - Gemfile.lock
127
+ - Guardfile
128
+ - LICENSE.txt
129
+ - README.md
130
+ - Rakefile
131
+ - bin/redirus
132
+ - bin/redirus-client
133
+ - config.yml.example
134
+ - lib/redirus.rb
135
+ - lib/redirus/cli.rb
136
+ - lib/redirus/config.rb
137
+ - lib/redirus/proxy.rb
138
+ - lib/redirus/server_cli.rb
139
+ - lib/redirus/version.rb
140
+ - lib/redirus/worker.rb
141
+ - lib/redirus/worker/add_proxy.rb
142
+ - lib/redirus/worker/rm_proxy.rb
143
+ - redirus.gemspec
144
+ - spec/redirus/config_spec.rb
145
+ - spec/redirus/proxy_spec.rb
146
+ - spec/redirus/worker/add_proxy_spec.rb
147
+ - spec/redirus/worker/rm_proxy_spec.rb
148
+ - spec/resources/config.yml
149
+ - spec/spec_helper.rb
150
+ - spec/support/matchers.rb
151
+ - support/upstart/redirus-nginx.conf
152
+ - support/upstart/redirus-sidekiq.conf
153
+ - support/upstart/redirus.conf
154
+ homepage: https://github.com/dice-cyfronet/redirus
155
+ licenses:
156
+ - MIT
157
+ metadata: {}
158
+ post_install_message:
159
+ rdoc_options: []
160
+ require_paths:
161
+ - lib
162
+ required_ruby_version: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - '>='
165
+ - !ruby/object:Gem::Version
166
+ version: '0'
167
+ required_rubygems_version: !ruby/object:Gem::Requirement
168
+ requirements:
169
+ - - '>='
170
+ - !ruby/object:Gem::Version
171
+ version: '0'
172
+ requirements: []
173
+ rubyforge_project:
174
+ rubygems_version: 2.1.11
175
+ signing_key:
176
+ specification_version: 4
177
+ summary: Redirus is responsible for managing http/https redirections
178
+ test_files:
179
+ - spec/redirus/config_spec.rb
180
+ - spec/redirus/proxy_spec.rb
181
+ - spec/redirus/worker/add_proxy_spec.rb
182
+ - spec/redirus/worker/rm_proxy_spec.rb
183
+ - spec/resources/config.yml
184
+ - spec/spec_helper.rb
185
+ - spec/support/matchers.rb