Merge pull request #7686 from rolandwalker/move_to_app_postflight_review

review/revise `suppress_move_to_applications` method in postflight mini-DSL
This commit is contained in:
Roland Walker 2014-12-02 05:19:00 -05:00
commit d0d50fd935
1 changed files with 2 additions and 2 deletions

View File

@ -4,8 +4,8 @@ class Cask::DSL::Postflight < Cask::DSL::Base
include Cask::Staged
def suppress_move_to_applications(options = {})
key = options[:key] || "moveToApplicationsFolderAlertSuppress"
system_command("/usr/bin/defaults", :args => ["write", bundle_identifier, key, "-bool", "true"])
key = options[:key] || 'moveToApplicationsFolderAlertSuppress'
@command.run!('/usr/bin/defaults', :args => ['write', bundle_identifier, key, '-bool', 'true'])
end
def enable_accessibility_access