foreplay 0.10.3 → 0.11.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/foreplay/engine/remote.rb +2 -0
- data/lib/foreplay/engine/server.rb +5 -0
- data/lib/foreplay/engine/step.rb +3 -0
- data/lib/foreplay/engine/steps.yml +14 -14
- data/lib/foreplay/engine.rb +3 -0
- data/lib/foreplay/version.rb +1 -1
- data/spec/lib/foreplay/deploy_spec.rb +5 -5
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 88819e9e2b64f99fe34c4f2db6644ebba55e9ad6
|
4
|
+
data.tar.gz: 4e8818325e534443f4e066fc3157d7496dc07a38
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fe138f745c09e417df8a3548dc9e8e0d756336930c4d0b646a04e5a880ce1f15d1ef4cbd73596192150cd50505d2bf4a5acc6fbdadd221ba5dea670a54596640
|
7
|
+
data.tar.gz: 27a1ec20a0f06a3c374c30904518b1e1c7ca221a604a654ea4393ee0b0bdbe639495a2fbda7926ba4ce76655341058886bcd495c418a1f6e1c8f127c8645e5fc
|
data/lib/foreplay/engine/step.rb
CHANGED
@@ -67,20 +67,20 @@
|
|
67
67
|
commentary: "Setting the port for the new instance to <%= current_port %>"
|
68
68
|
- command: 'sleep 60'
|
69
69
|
commentary: 'Waiting 60s to give service time to start'
|
70
|
-
|
71
|
-
commentary: "Adding firewall rule to direct incoming traffic on port 80 to port <%= current_port %>"
|
72
|
-
|
73
|
-
commentary: "Removing previous firewall rule directing traffic to port <%= former_port %>"
|
74
|
-
ignore_error: true
|
75
|
-
|
76
|
-
commentary: 'Attempting to save firewall rules to /etc/iptables/rules.v4'
|
77
|
-
ignore_error: true
|
78
|
-
|
79
|
-
commentary: 'Attempting to save firewall rules to /etc/iptables.up.rules'
|
80
|
-
ignore_error: true
|
81
|
-
|
82
|
-
ignore_error: true
|
83
|
-
commentary: 'Current firewall NAT configuration:'
|
70
|
+
#- command: "sudo iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port <%= current_port %>"
|
71
|
+
# commentary: "Adding firewall rule to direct incoming traffic on port 80 to port <%= current_port %>"
|
72
|
+
#- command: "sudo iptables -t nat -D PREROUTING -p tcp --dport 80 -j REDIRECT --to-port <%= former_port %>"
|
73
|
+
# commentary: "Removing previous firewall rule directing traffic to port <%= former_port %>"
|
74
|
+
# ignore_error: true
|
75
|
+
#- command: 'sudo iptables-save > /etc/iptables/rules.v4'
|
76
|
+
# commentary: 'Attempting to save firewall rules to /etc/iptables/rules.v4'
|
77
|
+
# ignore_error: true
|
78
|
+
#- command: 'sudo iptables-save > /etc/iptables.up.rules'
|
79
|
+
# commentary: 'Attempting to save firewall rules to /etc/iptables.up.rules'
|
80
|
+
# ignore_error: true
|
81
|
+
#- command: 'sudo iptables-save -c | egrep REDIRECT --color=never'
|
82
|
+
# ignore_error: true
|
83
|
+
# commentary: 'Current firewall NAT configuration:'
|
84
84
|
- command: "sudo stop <%= former_service %> || echo 'No previous instance running'"
|
85
85
|
commentary: 'Stopping the previous instance'
|
86
86
|
ignore_error: true
|
data/lib/foreplay/engine.rb
CHANGED
data/lib/foreplay/version.rb
CHANGED
@@ -171,11 +171,11 @@ describe Foreplay::Launcher do
|
|
171
171
|
'mkdir -p .foreplay/foreplay && touch .foreplay/foreplay/current_port && cat .foreplay/foreplay/current_port',
|
172
172
|
'echo 50000 > $HOME/.foreplay/foreplay/current_port',
|
173
173
|
'sleep 60',
|
174
|
-
'sudo iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 50000',
|
175
|
-
'sudo iptables -t nat -D PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 51000',
|
176
|
-
'sudo iptables-save > /etc/iptables/rules.v4',
|
177
|
-
'sudo iptables-save > /etc/iptables.up.rules',
|
178
|
-
'sudo iptables-save -c | egrep REDIRECT --color=never',
|
174
|
+
#- 'sudo iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 50000',
|
175
|
+
#- 'sudo iptables -t nat -D PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 51000',
|
176
|
+
#- 'sudo iptables-save > /etc/iptables/rules.v4',
|
177
|
+
#- 'sudo iptables-save > /etc/iptables.up.rules',
|
178
|
+
#- 'sudo iptables-save -c | egrep REDIRECT --color=never',
|
179
179
|
'sudo stop foreplay-51000 || echo \'No previous instance running\''
|
180
180
|
].each do |command|
|
181
181
|
expect(shell).to receive(:execute).with(command).and_return(process)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: foreplay
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.11.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Xenapto
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-05-
|
11
|
+
date: 2015-05-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: foreman
|