File tree 3 files changed +11
-4
lines changed
3 files changed +11
-4
lines changed Original file line number Diff line number Diff line change 2
2
3
3
This file is used to list changes made in each version of the Java cookbook.
4
4
5
+ ## Unreleased
6
+
7
+ - resolved cookstyle error: resources/alternatives.rb:49:13 refactor: ` ChefCorrectness/ChefApplicationFatal `
8
+ - resolved cookstyle error: resources/alternatives.rb:62:13 refactor: ` ChefCorrectness/ChefApplicationFatal `
9
+ - resolved cookstyle error: resources/alternatives.rb:75:11 refactor: ` ChefCorrectness/ChefApplicationFatal `
10
+ - resolved cookstyle error: resources/jce.rb:51:6 refactor: ` ChefStyle/UnnecessaryOSCheck `
11
+
5
12
## 8.1.0 (10-04-2020)
6
13
7
14
- Added ` openjdk_pkg_install ` resource & documentation
Original file line number Diff line number Diff line change 46
46
remove_cmd = shell_out ( "#{ alternatives_cmd } --remove #{ cmd } #{ alt_path } " )
47
47
alternative_exists = false
48
48
unless remove_cmd . exitstatus == 0
49
- Chef :: Application . fatal! ( %( remove alternative failed ) )
49
+ raise ( %( remove alternative failed ) )
50
50
end
51
51
end
52
52
end
59
59
end
60
60
install_cmd = shell_out ( "#{ alternatives_cmd } --install #{ bin_path } #{ cmd } #{ alt_path } #{ priority } " )
61
61
unless install_cmd . exitstatus == 0
62
- Chef :: Application . fatal! ( %( install alternative failed ) )
62
+ raise ( %( install alternative failed ) )
63
63
end
64
64
end
65
65
end
72
72
Chef ::Log . debug "Setting alternative for #{ cmd } "
73
73
set_cmd = shell_out ( "#{ alternatives_cmd } --set #{ cmd } #{ alt_path } " )
74
74
unless set_cmd . exitstatus == 0
75
- Chef :: Application . fatal! ( %( set alternative failed ) )
75
+ raise ( %( set alternative failed ) )
76
76
end
77
77
end
78
78
end
Original file line number Diff line number Diff line change 48
48
# JRE installation does not have a jre folder
49
49
jre_path = node [ 'java' ] [ 'install_type' ] == 'jdk' ? 'jre' : ''
50
50
51
- if node [ 'os' ] == ' windows'
51
+ if platform_family? ( ' windows')
52
52
53
53
staging_path = ::File . join ( jce_home , jdk_version )
54
54
staging_local_policy = ::File . join ( staging_path , "UnlimitedJCEPolicyJDK#{ jdk_version } " , 'local_policy.jar' )
You can’t perform that action at this time.
0 commit comments