Skip to content

Commit

Permalink
Merge pull request #105 from jugatsu/windows-package
Browse files Browse the repository at this point in the history
Add `returns` property to windows_package resource
  • Loading branch information
tas50 authored Mar 20, 2017
2 parents 58f5dab + 6e4dcf6 commit 7ac19f0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion recipes/powershell3.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
checksum node['powershell']['powershell3']['checksum']
installer_type :custom
options '/quiet /norestart'
success_codes [0, 42, 127, 3010, 2_359_302]
returns [0, 42, 127, 3010, 2_359_302]
action :install
# Note that the :immediately is to immediately notify the other resource,
# not to immediately reboot. The windows_reboot 'notifies' does that.
Expand Down
2 changes: 1 addition & 1 deletion recipes/powershell4.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
installer_type :custom
options '/quiet /norestart'
action :install
success_codes [0, 42, 127, 3010, 2_359_302]
returns [0, 42, 127, 3010, 2_359_302]
# Note that the :immediately is to immediately notify the other resource,
# not to immediately reboot. The windows_reboot 'notifies' does that.
notifies :reboot_now, 'reboot[powershell]', :immediately if node['powershell']['installation_reboot_mode'] != 'no_reboot'
Expand Down
2 changes: 1 addition & 1 deletion recipes/powershell5.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
options '/quiet /norestart'
timeout node['powershell']['powershell5']['timeout']
action :install
success_codes [0, 42, 127, 3010, 2_359_302]
returns [0, 42, 127, 3010, 2_359_302]
# Note that the :immediately is to immediately notify the other resource,
# not to immediately reboot. The windows_reboot 'notifies' does that.
notifies :reboot_now, 'reboot[powershell]', :immediately if node['powershell']['installation_reboot_mode'] != 'no_reboot'
Expand Down

0 comments on commit 7ac19f0

Please sign in to comment.