ece_prewarmer 0.1.8 → 0.1.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -1
- data/bin/ece-prewarmer +6 -1
- data/lib/ece_prewarmer/version.rb +1 -1
- metadata +21 -21
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1bea990e40bd37d9735c61983f5d31bc5e909e6d
|
4
|
+
data.tar.gz: bd1551bda7eed5fb25d6814da7b725df523f7a15
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b03cafa68dc25eef7682d2ca475b9befd03acd4cd6445926dcc0c400b9584c8917138a4b1cab14755dc33490ae43c112ac08ef0bf3e5e7c2f08d99184a91c3a2
|
7
|
+
data.tar.gz: 5b10998dbbaa96c4ae69a6f5245d34c20d84fe4d549ea0c5f383a56fae346478c031788b567b1f813cc5f4403a863d039f1ef885c20bf478a185b9462cc86d53
|
data/README.md
CHANGED
@@ -7,7 +7,7 @@ Se usa mas o menos así:
|
|
7
7
|
```bash
|
8
8
|
[host ]$ screen
|
9
9
|
[host ]$ unset http_proxy
|
10
|
-
[host ]$ ece-prewarmer -s www.24horas.cl -i 10.132.17.114 -p 8080 -v -t 8
|
10
|
+
[host ]$ ece-prewarmer -s www.24horas.cl -i 10.132.17.114 -p 8080 -v -t 8 -u 'Android'
|
11
11
|
http://www.24horas.cl:8080/ Queue: 0
|
12
12
|
http://www.24horas.cl:8080/envivo/ Queue: 104
|
13
13
|
http://www.24horas.cl:8080/internacional/ Queue: 103
|
@@ -33,6 +33,7 @@ Usage: ece-prewarmer --site [www.24horas.cl] --host [next-presentation-1.tvn.org
|
|
33
33
|
-i, --ipaddress=HOST IP Address del servidor Presentation
|
34
34
|
-p, --port=PORT El puerto destino, 80 por defecto
|
35
35
|
-d, --depth=DEPTH Limite de links a seguir
|
36
|
+
-u, --useragent=USER-AGENT USER-AGENT a usar
|
36
37
|
-t, --threads=THREADS Procesos a lanzar
|
37
38
|
-V, --version Version
|
38
39
|
-v, --verbose Mas debug
|
data/bin/ece-prewarmer
CHANGED
@@ -40,6 +40,10 @@ optparse = OptionParser.new do |opts|
|
|
40
40
|
options[:params] = o.nil? ? nil : o.to_s
|
41
41
|
end
|
42
42
|
|
43
|
+
opts.on('-HHOSTFILE', '--hostfile=HOSTFILE', 'Archivo hosts') do |o|
|
44
|
+
options[:hostfile] = o.nil? ? nil : o.to_s
|
45
|
+
end
|
46
|
+
|
43
47
|
opts.on('-V', '--version', 'Version') do |o|
|
44
48
|
puts EcePrewarmer::VERSION
|
45
49
|
exit
|
@@ -65,13 +69,14 @@ opts[:threads] = options[:threads]
|
|
65
69
|
opts[:depth_limit] = options[:depth_limit]
|
66
70
|
opts[:user_agent] = options[:user_agent]
|
67
71
|
opts[:params] = options[:params]
|
72
|
+
opts[:hostfile] = options[:hostfile]
|
68
73
|
|
69
74
|
def shutdown
|
70
75
|
Thread.list.each do |thread|
|
71
76
|
thread.exit unless thread == Thread.current
|
72
77
|
end
|
73
78
|
puts "Eliminando entrada de hosts file"
|
74
|
-
FileUtils.cp "/tmp/hosts", '/etc/hosts'
|
79
|
+
FileUtils.cp "/tmp/hosts", '/etc/hosts' if opts[:hostfile] == "/etc/hosts"
|
75
80
|
end
|
76
81
|
|
77
82
|
# Trap ^C
|
metadata
CHANGED
@@ -1,111 +1,111 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ece_prewarmer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Patricio Bruna
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-09-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: anemone
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - ~>
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '0.7'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - ~>
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0.7'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: hosts
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - ~>
|
31
|
+
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '0.1'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - ~>
|
38
|
+
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0.1'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: bundler
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - ~>
|
45
|
+
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '1.9'
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - ~>
|
52
|
+
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '1.9'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rake
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- - ~>
|
59
|
+
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '10.0'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- - ~>
|
66
|
+
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '10.0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: guard
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- - ~>
|
73
|
+
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
75
|
version: '2.12'
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- - ~>
|
80
|
+
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '2.12'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: guard-minitest
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- - ~>
|
87
|
+
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
89
|
version: '2.4'
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
|
-
- - ~>
|
94
|
+
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '2.4'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: minitest-reporters
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
|
-
- - ~>
|
101
|
+
- - "~>"
|
102
102
|
- !ruby/object:Gem::Version
|
103
103
|
version: '1.0'
|
104
104
|
type: :development
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
|
-
- - ~>
|
108
|
+
- - "~>"
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: '1.0'
|
111
111
|
description: Script para pre-calentar servidores escenic
|
@@ -116,8 +116,8 @@ executables:
|
|
116
116
|
extensions: []
|
117
117
|
extra_rdoc_files: []
|
118
118
|
files:
|
119
|
-
- .gitignore
|
120
|
-
- .travis.yml
|
119
|
+
- ".gitignore"
|
120
|
+
- ".travis.yml"
|
121
121
|
- Gemfile
|
122
122
|
- LICENSE.txt
|
123
123
|
- README.md
|
@@ -136,17 +136,17 @@ require_paths:
|
|
136
136
|
- lib
|
137
137
|
required_ruby_version: !ruby/object:Gem::Requirement
|
138
138
|
requirements:
|
139
|
-
- -
|
139
|
+
- - ">="
|
140
140
|
- !ruby/object:Gem::Version
|
141
141
|
version: '0'
|
142
142
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
143
143
|
requirements:
|
144
|
-
- -
|
144
|
+
- - ">="
|
145
145
|
- !ruby/object:Gem::Version
|
146
146
|
version: '0'
|
147
147
|
requirements: []
|
148
148
|
rubyforge_project:
|
149
|
-
rubygems_version: 2.
|
149
|
+
rubygems_version: 2.2.2
|
150
150
|
signing_key:
|
151
151
|
specification_version: 4
|
152
152
|
summary: Script para pre-calentar servidores escenic
|