itamae-plugin-recipe-selenium 0.1.9 → 0.3.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b618c71b9270cfd015c21d9141a09d860912650f48547dd2e15439f19f068126
4
- data.tar.gz: f40a4f22d1e0a2b58d786542695fe90c921f7952da55942a9bdd40d7e4921f6d
3
+ metadata.gz: f3267094a101e501e8cceee548b0248d7d5e69ffa73470ca9ae808456579c63a
4
+ data.tar.gz: 171240b3c1c6ec4cbadb7e924d70cbd8f6611df9d16b2c97d1cb2f447cfa3af3
5
5
  SHA512:
6
- metadata.gz: 3fd7ab471a20405bb7e894afc302443d6dfbe819a3ccf9f96c3a98e136077220e333f129c57979d5cc64c088ca62fb9af8f1e181fb8b2ee154639160cdc3ffbd
7
- data.tar.gz: 80ed97283d1750755c9b77de99877c0b137816b410e81a5a004c775b0e296d0ad72a64715296e0a5df0f1e371b2d1917ed5c4c41d13a7e49e201485ce6a6c308
6
+ metadata.gz: b64d882fb00e7840358be1249a36f70e2e054a98756fbb6a1f9baf7681afb4f2da552b205a116d24e4a990b7928118a9a0df11b54b980704832f50db2d1e1c88
7
+ data.tar.gz: c325398edaafc49117e38aece5f906e14e6ddc65fff1297688e3c6bee33328d7e5d8b3fde5820f4ac50b15ce77654f35cdb3bad98838eb05bc06e9eb7f8214dd
@@ -1,3 +1,5 @@
1
+ version = ENV['CHROME_VERSION']
2
+
1
3
  template '/etc/yum.repos.d/google-chrome.repo' do
2
4
  user 'root'
3
5
  owner 'root'
@@ -5,11 +7,18 @@ template '/etc/yum.repos.d/google-chrome.repo' do
5
7
  mode '644'
6
8
  end
7
9
 
8
- package 'google-chrome-stable' do
9
- user 'root'
10
+ if ENV['CHROME_VERSION'].to_s.empty?
11
+ package 'google-chrome-stable' do
12
+ user 'root'
13
+ end
14
+ else
15
+ execute "yum install -y https://dl.google.com/linux/chrome/rpm/stable/x86_64/google-chrome-stable-#{ENV['CHROME_VERSION']}-1.x86_64.rpm" do
16
+ user 'root'
17
+ not_if "which google-chrome-stable && google-chrome-stable --version | cut -d ' ' -f 3 | egrep \"^#{ENV['CHROME_VERSION']}$\""
18
+ end
10
19
  end
11
20
 
12
21
  execute 'yum update -y google-chrome-stable' do
13
22
  user 'root'
14
- not_if "which google-chrome-stable && google-chrome-stable --version | egrep 'Google Chrome (87|88|89|90|91)\.'"
23
+ not_if "which google-chrome-stable && google-chrome-stable --version | egrep 'Google Chrome (91|92|93|94|96)\.'"
15
24
  end
@@ -1,5 +1,9 @@
1
1
  include_recipe './tmp_directory'
2
2
 
3
+ package 'unzip' do
4
+ user 'root'
5
+ end
6
+
3
7
  setup_selenium_driver "setup chromedriver" do
4
8
  type :chrome
5
9
  tmp_dir '/tmp/itamae-plugin-recipe-selenium'
@@ -1,6 +1,6 @@
1
1
  [google-chrome]
2
2
  name=google-chrome
3
- baseurl=http://dl.google.com/linux/chrome/rpm/stable/x86_64
3
+ baseurl=https://dl.google.com/linux/chrome/rpm/stable/x86_64
4
4
  enabled=1
5
5
  gpgcheck=1
6
6
  gpgkey=https://dl-ssl.google.com/linux/linux_signing_key.pub
@@ -2,7 +2,7 @@ module Itamae
2
2
  module Plugin
3
3
  module Recipe
4
4
  module Selenium
5
- VERSION = '0.1.9'
5
+ VERSION = '0.3.2'
6
6
  end
7
7
  end
8
8
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: itamae-plugin-recipe-selenium
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.9
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - y-matsuda
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-05-29 00:00:00.000000000 Z
11
+ date: 2021-12-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: itamae
@@ -115,7 +115,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
115
115
  - !ruby/object:Gem::Version
116
116
  version: '0'
117
117
  requirements: []
118
- rubygems_version: 3.2.16
118
+ rubygems_version: 3.1.4
119
119
  signing_key:
120
120
  specification_version: 4
121
121
  summary: itamae recipe for god process monitoring framework