class Velcro::Setter::Mac

Class that handles setting OSX settings

Private Instance Methods

git(*args) click to toggle source
Calls superclass method Velcro::Setter::Base#git
# File lib/velcro/setter/mac.rb, line 9
def git(*args)
  super(*args)

  options = args.first || {}
  return unless options['editor']

  command = "git config --global core.editor \"#{options['editor']}\""
  dryrun ? puts(command) : system(command)
end
keyboard_repeat(*args) click to toggle source
# File lib/velcro/setter/mac.rb, line 19
def keyboard_repeat(*args)
  speed = args.first || 0
  command = "defaults write NSGlobalDomain KeyRepeat -int #{speed}"
  dryrun ? puts(command) : system(command)
end