itamae-plugin-recipe-selenium 0.1.9 → 0.2.0

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: cc3b890e2207391d29218f6bb1eb400b2506ddf0d8136476d83aaba7ed39e8a0
4
+ data.tar.gz: 654812fc60f73da4eb38e2d2f428d2d3471c4836469c5ec8c1d41dc5b78a46e3
5
5
  SHA512:
6
- metadata.gz: 3fd7ab471a20405bb7e894afc302443d6dfbe819a3ccf9f96c3a98e136077220e333f129c57979d5cc64c088ca62fb9af8f1e181fb8b2ee154639160cdc3ffbd
7
- data.tar.gz: 80ed97283d1750755c9b77de99877c0b137816b410e81a5a004c775b0e296d0ad72a64715296e0a5df0f1e371b2d1917ed5c4c41d13a7e49e201485ce6a6c308
6
+ metadata.gz: ae48116dbe08b74450e712dfa87a32a606ca04be6a58891d50179339b5c6288a0dba43fc6f1a482bb39d4c47f83adf816e445e198e3ae16247b41a33ae41af66
7
+ data.tar.gz: 285630e6b252ad7393061ff51988732acce4f532d70b944a1429569f2ceb3c20c9365f85316e97f9b926e434a3c5fbaa2fbe545c31adaa6ac47fa559575fc4dc
@@ -5,8 +5,15 @@ template '/etc/yum.repos.d/google-chrome.repo' do
5
5
  mode '644'
6
6
  end
7
7
 
8
- package 'google-chrome-stable' do
9
- user 'root'
8
+ if ENV['CHROME_VERSION'].to_s.empty?
9
+ package 'google-chrome-stable' do
10
+ user 'root'
11
+ end
12
+ else
13
+ 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
14
+ user 'root'
15
+ not_if "which google-chrome-stable && google-chrome-stable --version | cut -d ' ' -f 3 | egrep \"^#{ENV['CHROME_VERSION']}$\""
16
+ end
10
17
  end
11
18
 
12
19
  execute 'yum update -y google-chrome-stable' do
@@ -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.2.0'
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.2.0
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-05-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: itamae