itamae-plugin-recipe-daddy 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/lib/itamae/plugin/recipe/daddy/nginx/templates/etc/nginx/conf.d/default.conf.erb +9 -1
- data/lib/itamae/plugin/recipe/daddy/selenium/drivers/chromedriver.rb +23 -0
- data/lib/itamae/plugin/recipe/daddy/selenium/drivers/chromedriver_linux64-2.35_sha256sum.txt +1 -0
- data/lib/itamae/plugin/recipe/daddy/selenium/drivers/chromedriver_linux64-2.37_sha256sum.txt +1 -0
- data/lib/itamae/plugin/recipe/daddy/selenium/drivers/chromedriver_linux64-2.40_sha256sum.txt +1 -0
- data/lib/itamae/plugin/recipe/daddy/selenium/drivers/chromedriver_linux64-2.42_sha256sum.txt +1 -0
- data/lib/itamae/plugin/recipe/daddy/selenium/drivers/geckodriver-v0.19.1-linux64_sha256sum.txt +1 -0
- data/lib/itamae/plugin/recipe/daddy/selenium/drivers/geckodriver-v0.22.0-linux64_sha256sum.txt +1 -0
- data/lib/itamae/plugin/recipe/daddy/selenium/drivers/geckodriver.rb +23 -0
- data/lib/itamae/plugin/recipe/daddy/selenium/install.rb +2 -0
- data/lib/itamae_plugin_recipe_daddy/version.rb +12 -1
- metadata +12 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ee720fb323ee082660b4dce6dc31f3b05ebe02264cdd4368f75d5f08c3649767
|
4
|
+
data.tar.gz: 867b3b6cdba452e30cb3c2deb0cbeb2b2db8f00084b203420d10e185a3baace1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bcffc930f5c3da55c6fe1228904f7f37551da5900c5747088c32d5d5f1f80466c9b8b1bff75a647c89da671b9c9e4d3d463583ed1c9ce376a6cfbad140a4a152
|
7
|
+
data.tar.gz: e701082dcdda892d78e249ea4ed868fbcb6610d3242e27a92c2fd98a1bfa6527085215c01bfafa84c3735b3bdc237417005722ce0700218bfe326d4133b49da6
|
data/Gemfile.lock
CHANGED
@@ -37,7 +37,15 @@ http {
|
|
37
37
|
server {
|
38
38
|
listen 80 default_server;
|
39
39
|
server_name _;
|
40
|
-
|
40
|
+
|
41
|
+
location ^~ /.well-known/acme-challenge/ {
|
42
|
+
default_type "text/plain";
|
43
|
+
root /opt/nginx/shared/letsencrypt;
|
44
|
+
}
|
45
|
+
|
46
|
+
location / {
|
47
|
+
deny all;
|
48
|
+
}
|
41
49
|
}
|
42
50
|
|
43
51
|
include /etc/nginx/conf.d/servers/*.conf;
|
@@ -0,0 +1,23 @@
|
|
1
|
+
require 'daddy'
|
2
|
+
|
3
|
+
directory 'tmp'
|
4
|
+
|
5
|
+
version = ENV['CHROME_DRIVER_VERSION'] || ItamaePluginRecipeDaddy::CHROME_DRIVER_VERSION
|
6
|
+
|
7
|
+
execute "download chromedriver-#{version}" do
|
8
|
+
cwd 'tmp'
|
9
|
+
command <<-EOF
|
10
|
+
curl -o chromedriver_linux64-#{version}.zip \
|
11
|
+
https://chromedriver.storage.googleapis.com/#{version}/chromedriver_linux64.zip
|
12
|
+
EOF
|
13
|
+
not_if "sha256sum -c #{::File.join(::File.dirname(__FILE__), "chromedriver_linux64-#{version}_sha256sum.txt")}"
|
14
|
+
end
|
15
|
+
|
16
|
+
execute "install chromedriver-#{version}" do
|
17
|
+
cwd 'tmp'
|
18
|
+
command <<-EOF
|
19
|
+
unzip chromedriver_linux64-#{version}.zip
|
20
|
+
sudo mv -f chromedriver /usr/local/bin/
|
21
|
+
EOF
|
22
|
+
not_if "/usr/local/bin/chromedriver -v | grep 'ChromeDriver #{version}'"
|
23
|
+
end
|
@@ -0,0 +1 @@
|
|
1
|
+
67fad24c4a85e3f33f51c97924a98b619722db15ce92dcd27484fb748af93e8e chromedriver_linux64-2.35.zip
|
@@ -0,0 +1 @@
|
|
1
|
+
94dfe45843a950e1452007850afbb58619882fec1ac9cdd534f3029fc9cf3edf chromedriver_linux64-2.37.zip
|
@@ -0,0 +1 @@
|
|
1
|
+
2ad85db0d73e642af4698ed889977784640445e873ceb956f7a364fa824c631d chromedriver_linux64-2.40.zip
|
@@ -0,0 +1 @@
|
|
1
|
+
ced920ea978a658d915a960ed7bff62c37c9b7d62dfabbb42ffd7fe7cef7f082 chromedriver_linux64-2.42.zip
|
data/lib/itamae/plugin/recipe/daddy/selenium/drivers/geckodriver-v0.19.1-linux64_sha256sum.txt
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
7f55c4c89695fd1e6f8fc7372345acc1e2dbaa4a8003cee4bd282eed88145937 geckodriver-v0.19.1-linux64.tar.gz
|
data/lib/itamae/plugin/recipe/daddy/selenium/drivers/geckodriver-v0.22.0-linux64_sha256sum.txt
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
9d80799bff034eda2a233493a78e3250b7c6118c9010ec37a871783081963fda geckodriver-v0.22.0-linux64.tar.gz
|
@@ -0,0 +1,23 @@
|
|
1
|
+
require 'daddy/itamae'
|
2
|
+
|
3
|
+
directory 'tmp'
|
4
|
+
|
5
|
+
version = ENV['GECKO_DRIVER_VERSION'] || ItamaePluginRecipeDaddy::GECKO_DRIVER_VERSION
|
6
|
+
|
7
|
+
execute "download geckodriver-#{version}" do
|
8
|
+
cwd 'tmp'
|
9
|
+
command <<-EOF
|
10
|
+
rm -Rf geckodriver-v#{version}-linux64*
|
11
|
+
wget https://github.com/mozilla/geckodriver/releases/download/v#{version}/geckodriver-v#{version}-linux64.tar.gz
|
12
|
+
EOF
|
13
|
+
not_if "sha256sum -c #{::File.join(::File.dirname(__FILE__), "geckodriver-v#{version}-linux64_sha256sum.txt")}"
|
14
|
+
end
|
15
|
+
|
16
|
+
execute "install geckodriver-#{version}" do
|
17
|
+
cwd 'tmp'
|
18
|
+
command <<-EOF
|
19
|
+
tar zxf geckodriver-v#{version}-linux64.tar.gz
|
20
|
+
sudo mv -f geckodriver /usr/local/bin/
|
21
|
+
EOF
|
22
|
+
not_if "/usr/local/bin/geckodriver -V | grep 'geckodriver #{version}'"
|
23
|
+
end
|
@@ -1,5 +1,16 @@
|
|
1
1
|
module ItamaePluginRecipeDaddy
|
2
|
-
VERSION =
|
2
|
+
VERSION = '0.1.4'
|
3
|
+
|
4
|
+
CHROME_DRIVER_VERSION = [
|
5
|
+
CHROME_DRIVER_VERSION_MAJOR = '2',
|
6
|
+
CHROME_DRIVER_VERSION_MINOR = '42'
|
7
|
+
].join('.')
|
8
|
+
|
9
|
+
GECKO_DRIVER_VERSION = [
|
10
|
+
GECKO_DRIVER_VERSION_MAJOR = '0',
|
11
|
+
GECKO_DRIVER_VERSION_MINOR = '22',
|
12
|
+
GECKO_DRIVER_VERSION_REVISION = '0'
|
13
|
+
].join('.')
|
3
14
|
|
4
15
|
NGINX_VERSION = [
|
5
16
|
NGINX_VERSION_MAJOR = '1',
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: itamae-plugin-recipe-daddy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ichy
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-09-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -74,6 +74,15 @@ files:
|
|
74
74
|
- lib/itamae/plugin/recipe/daddy/passenger/install.rb
|
75
75
|
- lib/itamae/plugin/recipe/daddy/passenger/templates/_passenger.conf.erb
|
76
76
|
- lib/itamae/plugin/recipe/daddy/redis/install.rb
|
77
|
+
- lib/itamae/plugin/recipe/daddy/selenium/drivers/chromedriver.rb
|
78
|
+
- lib/itamae/plugin/recipe/daddy/selenium/drivers/chromedriver_linux64-2.35_sha256sum.txt
|
79
|
+
- lib/itamae/plugin/recipe/daddy/selenium/drivers/chromedriver_linux64-2.37_sha256sum.txt
|
80
|
+
- lib/itamae/plugin/recipe/daddy/selenium/drivers/chromedriver_linux64-2.40_sha256sum.txt
|
81
|
+
- lib/itamae/plugin/recipe/daddy/selenium/drivers/chromedriver_linux64-2.42_sha256sum.txt
|
82
|
+
- lib/itamae/plugin/recipe/daddy/selenium/drivers/geckodriver-v0.19.1-linux64_sha256sum.txt
|
83
|
+
- lib/itamae/plugin/recipe/daddy/selenium/drivers/geckodriver-v0.22.0-linux64_sha256sum.txt
|
84
|
+
- lib/itamae/plugin/recipe/daddy/selenium/drivers/geckodriver.rb
|
85
|
+
- lib/itamae/plugin/recipe/daddy/selenium/install.rb
|
77
86
|
- lib/itamae_plugin_recipe_daddy/daddy.rb
|
78
87
|
- lib/itamae_plugin_recipe_daddy/version.rb
|
79
88
|
homepage: https://github.com/ichylinux/itamae-plugin-recipe-daddy
|
@@ -96,7 +105,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
96
105
|
version: '0'
|
97
106
|
requirements: []
|
98
107
|
rubyforge_project:
|
99
|
-
rubygems_version: 2.7.
|
108
|
+
rubygems_version: 2.7.6
|
100
109
|
signing_key:
|
101
110
|
specification_version: 4
|
102
111
|
summary: itamae recipe collections
|