Written by Alister Bulman, abulman@gmail.com
Official site & Git repo: http://github.com/alister/puppet-sublimetext2
Released under the terms of Apache 2 License.
-
Install sublime-text-2 with the given (required!) settings
class { sublimetext2::params: userName => 'alister', # me, on Ubuntu 12.04 installBasePath => "/home/alister/.config/sublime-text-2/Packages" } class { sublimetext": }
Install to a given path, and then add a plugin.
NOTE: Until the editor has been started, the configuration directory does not exist. SO, the plugin portion of the manifests won't work till sublime-text has been run at least once.
# these must be set
class { sublimetext2::params:
userName => 'alister',
installBasePath => "/home/alister/.config/sublime-text-2/Packages"
# @TODO given the userName, and the OS, we could probably work out the
# installBasePath in ::params ??
}
# also required (currently installs the dev package from a PPA)
include sublimetext2
sublimetext2::plugin { 'DocBlockr':
gitUrl => 'https://github.com/spadgos/sublime-jsdocs.git'
}
# could probably install PackageManager in much the same way.
See also my own puppet manifests