latest WIP
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>beforeRunningCommand</key>
|
||||
<string>saveActiveFile</string>
|
||||
<key>command</key>
|
||||
<string>#!/usr/bin/env ruby
|
||||
require ENV['TM_SUPPORT_PATH'] + '/lib/textmate'
|
||||
puts "<p>Running syntax check&hellip;</p>\n"
|
||||
result = `puppet parser validate --color=false --confdir=/tmp/puppet --vardir=/tmp/puppet $TM_FILEPATH`
|
||||
puts "<pre>"
|
||||
puts result
|
||||
puts "</pre>"
|
||||
puts "<p>Check complete.</p>\n"
|
||||
TextMate.go_to :line => $1 if result =~ /:(\d+)$/</string>
|
||||
<key>input</key>
|
||||
<string>none</string>
|
||||
<key>keyEquivalent</key>
|
||||
<string>^V</string>
|
||||
<key>name</key>
|
||||
<string>Validate Syntax (puppetparse)</string>
|
||||
<key>output</key>
|
||||
<string>showAsHTML</string>
|
||||
<key>scope</key>
|
||||
<string>source.puppet</string>
|
||||
<key>uuid</key>
|
||||
<string>1DBD7B78-91F3-4528-9AC9-B71D9E5FE445</string>
|
||||
</dict>
|
||||
</plist>
|
36
Sublime/Puppet/Preferences/Comments.tmPreferences
Normal file
36
Sublime/Puppet/Preferences/Comments.tmPreferences
Normal file
@@ -0,0 +1,36 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>Comments</string>
|
||||
<key>scope</key>
|
||||
<string>source.puppet</string>
|
||||
<key>settings</key>
|
||||
<dict>
|
||||
<key>shellVariables</key>
|
||||
<array>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>TM_COMMENT_START</string>
|
||||
<key>value</key>
|
||||
<string># </string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>TM_COMMENT_START_2</string>
|
||||
<key>value</key>
|
||||
<string>/*</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>TM_COMMENT_END_2</string>
|
||||
<key>value</key>
|
||||
<string>*/</string>
|
||||
</dict>
|
||||
</array>
|
||||
</dict>
|
||||
<key>uuid</key>
|
||||
<string>BAB15109-162D-4E1F-92F9-CA83A21169C3</string>
|
||||
</dict>
|
||||
</plist>
|
34
Sublime/Puppet/Preferences/Completions.tmPreferences
Normal file
34
Sublime/Puppet/Preferences/Completions.tmPreferences
Normal file
@@ -0,0 +1,34 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>Completions</string>
|
||||
<key>scope</key>
|
||||
<string>source.puppet</string>
|
||||
<key>settings</key>
|
||||
<dict>
|
||||
<key>completions</key>
|
||||
<array>
|
||||
<string>name</string>
|
||||
<string>provider</string>
|
||||
<string>ensure</string>
|
||||
<string>enable</string>
|
||||
<string>command</string>
|
||||
<string>path</string>
|
||||
<string>owner</string>
|
||||
<string>group</string>
|
||||
<string>refresh</string>
|
||||
<string>refreshonly</string>
|
||||
<string>unless</string>
|
||||
<string>backup</string>
|
||||
<string>content</string>
|
||||
<string>source</string>
|
||||
<string>mode</string>
|
||||
<string>recurse</string>
|
||||
</array>
|
||||
</dict>
|
||||
<key>uuid</key>
|
||||
<string>A0062DFA-F753-41C5-B48A-5DF9AA1352DD</string>
|
||||
</dict>
|
||||
</plist>
|
@@ -0,0 +1,17 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>SymbolList (class_node_define)</string>
|
||||
<key>scope</key>
|
||||
<string>source.puppet entity.name.function entity.name.type</string>
|
||||
<key>settings</key>
|
||||
<dict>
|
||||
<key>showInSymbolList</key>
|
||||
<integer>1</integer>
|
||||
</dict>
|
||||
<key>uuid</key>
|
||||
<string>DCFE74BF-4295-47AB-B91E-66A5761BFA96</string>
|
||||
</dict>
|
||||
</plist>
|
@@ -0,0 +1,19 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>SymbolList (resource)</string>
|
||||
<key>scope</key>
|
||||
<string>source.puppet meta.definition.resource.puppet</string>
|
||||
<key>settings</key>
|
||||
<dict>
|
||||
<key>showInSymbolList</key>
|
||||
<integer>1</integer>
|
||||
<key>symbolTransformation</key>
|
||||
<string>s/^\s*(\w+)\s*{\s*['"](.*)['"]:/ \u$1["$2"]/</string>
|
||||
</dict>
|
||||
<key>uuid</key>
|
||||
<string>13DD53A2-401B-4149-82B0-001374330B40</string>
|
||||
</dict>
|
||||
</plist>
|
6
Sublime/Puppet/Puppet.sublime-build
Normal file
6
Sublime/Puppet/Puppet.sublime-build
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"cmd": [ "puppet", "parser", "validate", "--color=false", "--confdir=/tmp", "--vardir=/tmp", "$file" ],
|
||||
"working_dir": "${project_path:${folder:${file_path}}}",
|
||||
"selector": "source.pp",
|
||||
"path": "/opt/local/bin:$PATH"
|
||||
}
|
4
Sublime/Puppet/README.md
Normal file
4
Sublime/Puppet/README.md
Normal file
@@ -0,0 +1,4 @@
|
||||
SublimePuppet
|
||||
=============
|
||||
|
||||
Puppet (puppetlabs.com) highlighting, snippets and completion for Sublime Text 2
|
16
Sublime/Puppet/Snippets/Parameter.tmSnippet
Normal file
16
Sublime/Puppet/Snippets/Parameter.tmSnippet
Normal file
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>content</key>
|
||||
<string>${1:name} => "${2:value}",$0</string>
|
||||
<key>name</key>
|
||||
<string>Parameter</string>
|
||||
<key>scope</key>
|
||||
<string>source.puppet</string>
|
||||
<key>tabTrigger</key>
|
||||
<string>=</string>
|
||||
<key>uuid</key>
|
||||
<string>8261BD6F-38ED-4AB3-A20B-29AFDE01EE36</string>
|
||||
</dict>
|
||||
</plist>
|
74
Sublime/Puppet/Snippets/baseclass.sublime-snippet
Normal file
74
Sublime/Puppet/Snippets/baseclass.sublime-snippet
Normal file
@@ -0,0 +1,74 @@
|
||||
<snippet>
|
||||
<content><![CDATA[# Class: ${1:name}
|
||||
#
|
||||
# This class installs ${1:name}
|
||||
#
|
||||
# Parameters:
|
||||
#
|
||||
# Actions:
|
||||
# - Install ${1:name}
|
||||
# - Manage ${1:name} service
|
||||
#
|
||||
# Requires:
|
||||
#
|
||||
# Sample Usage:
|
||||
#
|
||||
class ${1:name} \{
|
||||
class install \{
|
||||
package \{
|
||||
"${2:package}":
|
||||
ensure => present;
|
||||
\}
|
||||
\}
|
||||
|
||||
class config \{
|
||||
file \{
|
||||
"/etc/${1:name}":
|
||||
ensure => directory,
|
||||
owner => root,
|
||||
group => root,
|
||||
mode => 700,
|
||||
require => Class["install"];
|
||||
|
||||
"/etc/${1:name}/${3:config}":
|
||||
ensure => present,
|
||||
owner => root,
|
||||
group => root,
|
||||
mode => 600,
|
||||
require => Class["install"];
|
||||
#content => template ("${1:name}/${3:config}.erb");
|
||||
#source => [
|
||||
# "puppet://$server/modules/${1:name}/\$\{fqdn\}.conf",
|
||||
# "puppet://$server/modules/${1:name}/${1:name}.conf"
|
||||
#];
|
||||
\}
|
||||
|
||||
#logrotate::file { "${1:name}":
|
||||
# source => "/etc/logrotate.d/${1:name}",
|
||||
# log => "/var/log/${4:logfile}.log",
|
||||
#\}
|
||||
\}
|
||||
|
||||
class service \{
|
||||
service \{ "${1:name}":
|
||||
enable => true,
|
||||
ensure => running,
|
||||
#hasrestart => true,
|
||||
#hasstatus => true,
|
||||
require => Class["config"],
|
||||
\}
|
||||
\}
|
||||
|
||||
include install
|
||||
include config
|
||||
include service
|
||||
|
||||
Class["install"] ->
|
||||
Class["config"] ->
|
||||
Class["service"]
|
||||
\}
|
||||
${0}]]></content>
|
||||
<tabTrigger>baseclass</tabTrigger>
|
||||
<scope>source.puppet</scope>
|
||||
<description>baseclass</description>
|
||||
</snippet>
|
23
Sublime/Puppet/Snippets/case.tmSnippet
Normal file
23
Sublime/Puppet/Snippets/case.tmSnippet
Normal file
@@ -0,0 +1,23 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>content</key>
|
||||
<string>case \$${1:variable} {
|
||||
"${2:value}": {
|
||||
${3:# code}
|
||||
}
|
||||
default: {
|
||||
${4:# code}
|
||||
}
|
||||
}$0</string>
|
||||
<key>name</key>
|
||||
<string>case</string>
|
||||
<key>scope</key>
|
||||
<string>source.puppet</string>
|
||||
<key>tabTrigger</key>
|
||||
<string>case</string>
|
||||
<key>uuid</key>
|
||||
<string>4C76CA5D-F7F7-4354-AAAD-1F8B00D73823</string>
|
||||
</dict>
|
||||
</plist>
|
21
Sublime/Puppet/Snippets/class.tmSnippet
Normal file
21
Sublime/Puppet/Snippets/class.tmSnippet
Normal file
@@ -0,0 +1,21 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>content</key>
|
||||
<string># Class: $1
|
||||
#
|
||||
#
|
||||
class ${1:name} {
|
||||
${2:# resources}
|
||||
}$0</string>
|
||||
<key>name</key>
|
||||
<string>class</string>
|
||||
<key>scope</key>
|
||||
<string>source.puppet</string>
|
||||
<key>tabTrigger</key>
|
||||
<string>class</string>
|
||||
<key>uuid</key>
|
||||
<string>2D3C6C03-B268-42B1-A856-33FB0437B00E</string>
|
||||
</dict>
|
||||
</plist>
|
23
Sublime/Puppet/Snippets/cron.tmSnippet
Normal file
23
Sublime/Puppet/Snippets/cron.tmSnippet
Normal file
@@ -0,0 +1,23 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>content</key>
|
||||
<string>cron { "${1:name}":
|
||||
command => "${2:command}",
|
||||
user => "${3:root}",
|
||||
month => "${4:*}",
|
||||
monthday => "${5:*}",
|
||||
hour => "${6:*}",
|
||||
minute => "${7:*}",
|
||||
}$0</string>
|
||||
<key>name</key>
|
||||
<string>cron</string>
|
||||
<key>scope</key>
|
||||
<string>source.puppet</string>
|
||||
<key>tabTrigger</key>
|
||||
<string>cron</string>
|
||||
<key>uuid</key>
|
||||
<string>C22C1778-E61D-40EC-8E06-4B4A5ABEC0E7</string>
|
||||
</dict>
|
||||
</plist>
|
22
Sublime/Puppet/Snippets/define.tmSnippet
Normal file
22
Sublime/Puppet/Snippets/define.tmSnippet
Normal file
@@ -0,0 +1,22 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>content</key>
|
||||
<string># Define: $1
|
||||
# Parameters:
|
||||
# $2
|
||||
#
|
||||
define ${1:name} (${2:arguments}) {
|
||||
${3:# puppet code}
|
||||
}$0</string>
|
||||
<key>name</key>
|
||||
<string>define</string>
|
||||
<key>scope</key>
|
||||
<string>source.puppet</string>
|
||||
<key>tabTrigger</key>
|
||||
<string>define</string>
|
||||
<key>uuid</key>
|
||||
<string>22538B08-D4D6-4172-B672-77893A6D8E40</string>
|
||||
</dict>
|
||||
</plist>
|
18
Sublime/Puppet/Snippets/else.tmSnippet
Normal file
18
Sublime/Puppet/Snippets/else.tmSnippet
Normal file
@@ -0,0 +1,18 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>content</key>
|
||||
<string>else {
|
||||
${1:# enter puppet code}
|
||||
}$0</string>
|
||||
<key>name</key>
|
||||
<string>else</string>
|
||||
<key>scope</key>
|
||||
<string>source.puppet</string>
|
||||
<key>tabTrigger</key>
|
||||
<string>else</string>
|
||||
<key>uuid</key>
|
||||
<string>B3E52D1C-3A49-44FA-8D1E-2910567F22C4</string>
|
||||
</dict>
|
||||
</plist>
|
20
Sublime/Puppet/Snippets/exec.tmSnippet
Normal file
20
Sublime/Puppet/Snippets/exec.tmSnippet
Normal file
@@ -0,0 +1,20 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>content</key>
|
||||
<string>exec { "${1:name}":
|
||||
command => "${2:/bin/echo}",
|
||||
#path => "/usr/bin:/usr/sbin:/bin:/usr/local/bin",
|
||||
#refreshonly => true,
|
||||
}$0</string>
|
||||
<key>name</key>
|
||||
<string>exec</string>
|
||||
<key>scope</key>
|
||||
<string>source.puppet</string>
|
||||
<key>tabTrigger</key>
|
||||
<string>exec</string>
|
||||
<key>uuid</key>
|
||||
<string>849952B4-0D8A-4B5F-996D-35D531AAAE81</string>
|
||||
</dict>
|
||||
</plist>
|
18
Sublime/Puppet/Snippets/file.tmSnippet
Normal file
18
Sublime/Puppet/Snippets/file.tmSnippet
Normal file
@@ -0,0 +1,18 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>content</key>
|
||||
<string>file { "${1:name}":
|
||||
ensure => ${2:file},
|
||||
}$0</string>
|
||||
<key>name</key>
|
||||
<string>file</string>
|
||||
<key>scope</key>
|
||||
<string>source.puppet</string>
|
||||
<key>tabTrigger</key>
|
||||
<string>file</string>
|
||||
<key>uuid</key>
|
||||
<string>C84524F5-B248-4A4B-87B9-69DCA93C393F</string>
|
||||
</dict>
|
||||
</plist>
|
18
Sublime/Puppet/Snippets/group.tmSnippet
Normal file
18
Sublime/Puppet/Snippets/group.tmSnippet
Normal file
@@ -0,0 +1,18 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>content</key>
|
||||
<string>group { "${1:name}":
|
||||
gid => $2,
|
||||
}$0</string>
|
||||
<key>name</key>
|
||||
<string>group</string>
|
||||
<key>scope</key>
|
||||
<string>source.puppet</string>
|
||||
<key>tabTrigger</key>
|
||||
<string>group</string>
|
||||
<key>uuid</key>
|
||||
<string>44C1B58A-0EF0-4022-A9EF-2D3B432C83FE</string>
|
||||
</dict>
|
||||
</plist>
|
18
Sublime/Puppet/Snippets/if.tmSnippet
Normal file
18
Sublime/Puppet/Snippets/if.tmSnippet
Normal file
@@ -0,0 +1,18 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>content</key>
|
||||
<string>if ${1:test} {
|
||||
${2:# enter puppet code}
|
||||
}$0</string>
|
||||
<key>name</key>
|
||||
<string>if</string>
|
||||
<key>scope</key>
|
||||
<string>source.puppet</string>
|
||||
<key>tabTrigger</key>
|
||||
<string>if</string>
|
||||
<key>uuid</key>
|
||||
<string>A60AC7AD-8710-4CCB-9A52-D8B84ABDD521</string>
|
||||
</dict>
|
||||
</plist>
|
18
Sublime/Puppet/Snippets/package.tmSnippet
Normal file
18
Sublime/Puppet/Snippets/package.tmSnippet
Normal file
@@ -0,0 +1,18 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>content</key>
|
||||
<string>package { "${1:name}":
|
||||
ensure => ${2:installed},
|
||||
}$0</string>
|
||||
<key>name</key>
|
||||
<string>package</string>
|
||||
<key>scope</key>
|
||||
<string>source.puppet</string>
|
||||
<key>tabTrigger</key>
|
||||
<string>package</string>
|
||||
<key>uuid</key>
|
||||
<string>1A1C51EE-AC6D-4F7F-A342-4D6DE1F4FAD3</string>
|
||||
</dict>
|
||||
</plist>
|
19
Sublime/Puppet/Snippets/selector.tmSnippet
Normal file
19
Sublime/Puppet/Snippets/selector.tmSnippet
Normal file
@@ -0,0 +1,19 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>content</key>
|
||||
<string>\$${1:variable} ? {
|
||||
"${2:key}" => "${3:value}",
|
||||
default => "${4:value}",
|
||||
}$0</string>
|
||||
<key>name</key>
|
||||
<string>selector</string>
|
||||
<key>scope</key>
|
||||
<string>source.puppet</string>
|
||||
<key>tabTrigger</key>
|
||||
<string>?</string>
|
||||
<key>uuid</key>
|
||||
<string>88BA23C0-A6AD-4115-A765-9074BB8C85BD</string>
|
||||
</dict>
|
||||
</plist>
|
13
Sublime/Puppet/Snippets/service.sublime-snippet
Normal file
13
Sublime/Puppet/Snippets/service.sublime-snippet
Normal file
@@ -0,0 +1,13 @@
|
||||
<snippet>
|
||||
<content><![CDATA[service \{ "$1":
|
||||
enable => true,
|
||||
ensure => running,
|
||||
#hasrestart => true,
|
||||
#hasstatus => true,
|
||||
#require => Class["config"],
|
||||
\}
|
||||
]]></content>
|
||||
<tabTrigger>service</tabTrigger>
|
||||
<scope>source.puppet</scope>
|
||||
<description>service</description>
|
||||
</snippet>
|
23
Sublime/Puppet/Snippets/user.tmSnippet
Normal file
23
Sublime/Puppet/Snippets/user.tmSnippet
Normal file
@@ -0,0 +1,23 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>content</key>
|
||||
<string>user { "${1:name}":
|
||||
comment => "${2:First Last}",
|
||||
home => "${3:/home/$1}",
|
||||
ensure => ${4:present},
|
||||
#shell => "/bin/bash",
|
||||
#uid => '501',
|
||||
#gid => '20'
|
||||
}$0</string>
|
||||
<key>name</key>
|
||||
<string>user</string>
|
||||
<key>scope</key>
|
||||
<string>source.puppet</string>
|
||||
<key>tabTrigger</key>
|
||||
<string>user</string>
|
||||
<key>uuid</key>
|
||||
<string>831FA574-7FC1-47B7-BDD3-67E3E94E8188</string>
|
||||
</dict>
|
||||
</plist>
|
23
Sublime/Puppet/Snippets/yumrepo.tmSnippet
Normal file
23
Sublime/Puppet/Snippets/yumrepo.tmSnippet
Normal file
@@ -0,0 +1,23 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>content</key>
|
||||
<string>yumrepo { "${1:name}":
|
||||
baseurl => "${2}",
|
||||
descr => "${3:The $1 repository}",
|
||||
enabled => "${4:1}",
|
||||
gpgcheck => "${5:1}",
|
||||
gpgkey => "${6:file:///etc/pki/rpm-gpg/RPM-GPG-KEY-$1}",
|
||||
mirrorlist => "${7}"
|
||||
}$0</string>
|
||||
<key>name</key>
|
||||
<string>yumrepo</string>
|
||||
<key>scope</key>
|
||||
<string>source.puppet</string>
|
||||
<key>tabTrigger</key>
|
||||
<string>yumrepo</string>
|
||||
<key>uuid</key>
|
||||
<string>7AC2033D-9B16-4127-8E03-0F8AD7220920</string>
|
||||
</dict>
|
||||
</plist>
|
653
Sublime/Puppet/Syntaxes/Puppet.tmLanguage
Normal file
653
Sublime/Puppet/Syntaxes/Puppet.tmLanguage
Normal file
@@ -0,0 +1,653 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>fileTypes</key>
|
||||
<array>
|
||||
<string>pp</string>
|
||||
</array>
|
||||
<key>foldingStartMarker</key>
|
||||
<string>(^\s*/\*|(\{|\[|\()\s*$)</string>
|
||||
<key>foldingStopMarker</key>
|
||||
<string>(\*/|^\s*(\}|\]|\)))</string>
|
||||
<key>keyEquivalent</key>
|
||||
<string>^~P</string>
|
||||
<key>name</key>
|
||||
<string>Puppet</string>
|
||||
<key>patterns</key>
|
||||
<array>
|
||||
<dict>
|
||||
<key>include</key>
|
||||
<string>#line_comment</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>begin</key>
|
||||
<string>^\s*/\*</string>
|
||||
<key>end</key>
|
||||
<string>\*/</string>
|
||||
<key>name</key>
|
||||
<string>comment.block.puppet</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>begin</key>
|
||||
<string>(?x)^\s*
|
||||
(node|class)\s+
|
||||
((?:[-_A-Za-z0-9".]+::)*[-_A-Za-z0-9".]+)\s* # identifier</string>
|
||||
<key>captures</key>
|
||||
<dict>
|
||||
<key>1</key>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>storage.type.puppet</string>
|
||||
</dict>
|
||||
<key>2</key>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>entity.name.type.class.puppet</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<key>end</key>
|
||||
<string>(?={)</string>
|
||||
<key>name</key>
|
||||
<string>meta.definition.class.puppet</string>
|
||||
<key>patterns</key>
|
||||
<array>
|
||||
<dict>
|
||||
<key>begin</key>
|
||||
<string>\b(inherits)\b\s+</string>
|
||||
<key>captures</key>
|
||||
<dict>
|
||||
<key>1</key>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>storage.modifier.puppet</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<key>end</key>
|
||||
<string>(?={)</string>
|
||||
<key>name</key>
|
||||
<string>meta.definition.class.inherits.puppet</string>
|
||||
<key>patterns</key>
|
||||
<array>
|
||||
<dict>
|
||||
<key>match</key>
|
||||
<string>\b((?:[-_A-Za-z0-9".]+::)*[-_A-Za-z0-9".]+)\b</string>
|
||||
<key>name</key>
|
||||
<string>support.type.puppet</string>
|
||||
</dict>
|
||||
</array>
|
||||
</dict>
|
||||
</array>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>begin</key>
|
||||
<string>^\s*(define)\s+([a-zA-Z0-9_:]+)\s*(\()</string>
|
||||
<key>beginCaptures</key>
|
||||
<dict>
|
||||
<key>1</key>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>storage.type.function.puppet</string>
|
||||
</dict>
|
||||
<key>2</key>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>entity.name.function.puppet</string>
|
||||
</dict>
|
||||
<key>3</key>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>punctuation.definition.parameters.begin.puppet</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<key>contentName</key>
|
||||
<string>meta.function.arguments.puppet</string>
|
||||
<key>end</key>
|
||||
<string>\)</string>
|
||||
<key>endCaptures</key>
|
||||
<dict>
|
||||
<key>1</key>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>punctuation.definition.parameters.end.puppet</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<key>name</key>
|
||||
<string>meta.function.puppet</string>
|
||||
<key>patterns</key>
|
||||
<array>
|
||||
<dict>
|
||||
<key>captures</key>
|
||||
<dict>
|
||||
<key>1</key>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>variable.other.puppet</string>
|
||||
</dict>
|
||||
<key>2</key>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>punctuation.definition.variable.puppet</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<key>match</key>
|
||||
<string>((\$+)[a-zA-Z_\x{7f}-\x{ff}][a-zA-Z0-9_\x{7f}-\x{ff}]*)\s*(?=,|\))</string>
|
||||
<key>name</key>
|
||||
<string>meta.function.argument.no-default.puppet</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>begin</key>
|
||||
<string>((\$+)[a-zA-Z_\x{7f}-\x{ff}][a-zA-Z0-9_\x{7f}-\x{ff}]*)(?:\s*(=)\s*)\s*</string>
|
||||
<key>captures</key>
|
||||
<dict>
|
||||
<key>1</key>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>variable.other.puppet</string>
|
||||
</dict>
|
||||
<key>2</key>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>punctuation.definition.variable.puppet</string>
|
||||
</dict>
|
||||
<key>3</key>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>keyword.operator.assignment.puppet</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<key>end</key>
|
||||
<string>(?=,|\))</string>
|
||||
<key>name</key>
|
||||
<string>meta.function.argument.default.puppet</string>
|
||||
<key>patterns</key>
|
||||
<array>
|
||||
<dict>
|
||||
<key>include</key>
|
||||
<string>#parameter-default-types</string>
|
||||
</dict>
|
||||
</array>
|
||||
</dict>
|
||||
</array>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>captures</key>
|
||||
<dict>
|
||||
<key>1</key>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>storage.type.puppet</string>
|
||||
</dict>
|
||||
<key>2</key>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>entity.name.section.puppet</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<key>match</key>
|
||||
<string>^\s*(\w+)\s*{\s*(['"].+['"]):</string>
|
||||
<key>name</key>
|
||||
<string>meta.definition.resource.puppet</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>match</key>
|
||||
<string>\b(case|if|unless|else)(?!::)</string>
|
||||
<key>name</key>
|
||||
<string>keyword.control.puppet</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>match</key>
|
||||
<string>((\$?)"?[a-zA-Z_\x{7f}-\x{ff}][a-zA-Z0-9_\x{7f}-\x{ff}]*"?):(?=\s+|$)</string>
|
||||
<key>name</key>
|
||||
<string>entity.name.section.puppet</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>include</key>
|
||||
<string>#strings</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>include</key>
|
||||
<string>#variable</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>begin</key>
|
||||
<string>(?i)\b(import|include)\b\s*</string>
|
||||
<key>beginCaptures</key>
|
||||
<dict>
|
||||
<key>1</key>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>keyword.control.import.include.puppet</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<key>end</key>
|
||||
<string>(?=\s|$)</string>
|
||||
<key>name</key>
|
||||
<string>meta.include.puppet</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>match</key>
|
||||
<string>\b\w+\s*(?==>)\s*</string>
|
||||
<key>name</key>
|
||||
<string>constant.other.key.puppet</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>match</key>
|
||||
<string>(?<={)\s*\w+\s*(?=})</string>
|
||||
<key>name</key>
|
||||
<string>constant.other.bareword.puppet</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>match</key>
|
||||
<string>\b(escape|gsub|alert|crit|debug|notice|defined|emerg|err|failed|file|generate|include|info|realize|search|tag|tagged|template|warning)\b</string>
|
||||
<key>name</key>
|
||||
<string>support.function.puppet</string>
|
||||
</dict>
|
||||
</array>
|
||||
<key>repository</key>
|
||||
<dict>
|
||||
<key>constants</key>
|
||||
<dict>
|
||||
<key>patterns</key>
|
||||
<array>
|
||||
<dict>
|
||||
<key>match</key>
|
||||
<string>(?i)\b(false|true|running|present|absent|file|directory)\b</string>
|
||||
<key>name</key>
|
||||
<string>constant.language.php</string>
|
||||
</dict>
|
||||
</array>
|
||||
</dict>
|
||||
<key>double-quoted-string</key>
|
||||
<dict>
|
||||
<key>begin</key>
|
||||
<string>"</string>
|
||||
<key>beginCaptures</key>
|
||||
<dict>
|
||||
<key>0</key>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>punctuation.definition.string.begin.puppet</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<key>end</key>
|
||||
<string>"</string>
|
||||
<key>endCaptures</key>
|
||||
<dict>
|
||||
<key>0</key>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>punctuation.definition.string.end.puppet</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<key>name</key>
|
||||
<string>string.quoted.double.puppet</string>
|
||||
<key>patterns</key>
|
||||
<array>
|
||||
<dict>
|
||||
<key>include</key>
|
||||
<string>#escaped_char</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>include</key>
|
||||
<string>#variable</string>
|
||||
</dict>
|
||||
</array>
|
||||
</dict>
|
||||
<key>escaped_char</key>
|
||||
<dict>
|
||||
<key>match</key>
|
||||
<string>\\.</string>
|
||||
<key>name</key>
|
||||
<string>constant.character.escape.puppet</string>
|
||||
</dict>
|
||||
<key>line_comment</key>
|
||||
<dict>
|
||||
<key>patterns</key>
|
||||
<array>
|
||||
<dict>
|
||||
<key>captures</key>
|
||||
<dict>
|
||||
<key>1</key>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>comment.line.number-sign.puppet</string>
|
||||
</dict>
|
||||
<key>2</key>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>punctuation.definition.comment.puppet</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<key>match</key>
|
||||
<string>^((#).*$\n?)</string>
|
||||
<key>name</key>
|
||||
<string>meta.comment.full-line.puppet</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>captures</key>
|
||||
<dict>
|
||||
<key>1</key>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>punctuation.definition.comment.puppet</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<key>match</key>
|
||||
<string>(#).*$\n?</string>
|
||||
<key>name</key>
|
||||
<string>comment.line.number-sign.puppet</string>
|
||||
</dict>
|
||||
</array>
|
||||
</dict>
|
||||
<key>nested_braces</key>
|
||||
<dict>
|
||||
<key>begin</key>
|
||||
<string>\{</string>
|
||||
<key>captures</key>
|
||||
<dict>
|
||||
<key>1</key>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>punctuation.section.scope.puppet</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<key>end</key>
|
||||
<string>\}</string>
|
||||
<key>patterns</key>
|
||||
<array>
|
||||
<dict>
|
||||
<key>include</key>
|
||||
<string>#escaped_char</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>include</key>
|
||||
<string>#nested_braces</string>
|
||||
</dict>
|
||||
</array>
|
||||
</dict>
|
||||
<key>nested_braces_interpolated</key>
|
||||
<dict>
|
||||
<key>begin</key>
|
||||
<string>\{</string>
|
||||
<key>captures</key>
|
||||
<dict>
|
||||
<key>1</key>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>punctuation.section.scope.puppet</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<key>end</key>
|
||||
<string>\}</string>
|
||||
<key>patterns</key>
|
||||
<array>
|
||||
<dict>
|
||||
<key>include</key>
|
||||
<string>#escaped_char</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>include</key>
|
||||
<string>#variable</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>include</key>
|
||||
<string>#nested_braces_interpolated</string>
|
||||
</dict>
|
||||
</array>
|
||||
</dict>
|
||||
<key>nested_brackets</key>
|
||||
<dict>
|
||||
<key>begin</key>
|
||||
<string>\[</string>
|
||||
<key>captures</key>
|
||||
<dict>
|
||||
<key>1</key>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>punctuation.section.scope.puppet</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<key>end</key>
|
||||
<string>\]</string>
|
||||
<key>patterns</key>
|
||||
<array>
|
||||
<dict>
|
||||
<key>include</key>
|
||||
<string>#escaped_char</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>include</key>
|
||||
<string>#nested_brackets</string>
|
||||
</dict>
|
||||
</array>
|
||||
</dict>
|
||||
<key>nested_brackets_interpolated</key>
|
||||
<dict>
|
||||
<key>begin</key>
|
||||
<string>\[</string>
|
||||
<key>captures</key>
|
||||
<dict>
|
||||
<key>1</key>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>punctuation.section.scope.puppet</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<key>end</key>
|
||||
<string>\]</string>
|
||||
<key>patterns</key>
|
||||
<array>
|
||||
<dict>
|
||||
<key>include</key>
|
||||
<string>#escaped_char</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>include</key>
|
||||
<string>#variable</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>include</key>
|
||||
<string>#nested_brackets_interpolated</string>
|
||||
</dict>
|
||||
</array>
|
||||
</dict>
|
||||
<key>nested_parens</key>
|
||||
<dict>
|
||||
<key>begin</key>
|
||||
<string>\(</string>
|
||||
<key>captures</key>
|
||||
<dict>
|
||||
<key>1</key>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>punctuation.section.scope.puppet</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<key>end</key>
|
||||
<string>\)</string>
|
||||
<key>patterns</key>
|
||||
<array>
|
||||
<dict>
|
||||
<key>include</key>
|
||||
<string>#escaped_char</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>include</key>
|
||||
<string>#nested_parens</string>
|
||||
</dict>
|
||||
</array>
|
||||
</dict>
|
||||
<key>nested_parens_interpolated</key>
|
||||
<dict>
|
||||
<key>begin</key>
|
||||
<string>\(</string>
|
||||
<key>captures</key>
|
||||
<dict>
|
||||
<key>1</key>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>punctuation.section.scope.puppet</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<key>end</key>
|
||||
<string>\)</string>
|
||||
<key>patterns</key>
|
||||
<array>
|
||||
<dict>
|
||||
<key>include</key>
|
||||
<string>#escaped_char</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>include</key>
|
||||
<string>#variable</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>include</key>
|
||||
<string>#nested_parens_interpolated</string>
|
||||
</dict>
|
||||
</array>
|
||||
</dict>
|
||||
<key>parameter-default-types</key>
|
||||
<dict>
|
||||
<key>patterns</key>
|
||||
<array>
|
||||
<dict>
|
||||
<key>include</key>
|
||||
<string>#strings</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>match</key>
|
||||
<string>=</string>
|
||||
<key>name</key>
|
||||
<string>keyword.operator.assignment.php</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>begin</key>
|
||||
<string>(\[)</string>
|
||||
<key>beginCaptures</key>
|
||||
<dict>
|
||||
<key>1</key>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>punctuation.definition.array.begin.puppet</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<key>end</key>
|
||||
<string>\]</string>
|
||||
<key>endCaptures</key>
|
||||
<dict>
|
||||
<key>0</key>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>punctuation.definition.array.end.puppet</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<key>name</key>
|
||||
<string>meta.array.php</string>
|
||||
<key>patterns</key>
|
||||
<array>
|
||||
<dict>
|
||||
<key>include</key>
|
||||
<string>#parameter-default-types</string>
|
||||
</dict>
|
||||
</array>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>include</key>
|
||||
<string>#constants</string>
|
||||
</dict>
|
||||
</array>
|
||||
</dict>
|
||||
<key>single-quoted-string</key>
|
||||
<dict>
|
||||
<key>begin</key>
|
||||
<string>'</string>
|
||||
<key>beginCaptures</key>
|
||||
<dict>
|
||||
<key>0</key>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>punctuation.definition.string.begin.puppet</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<key>end</key>
|
||||
<string>'</string>
|
||||
<key>endCaptures</key>
|
||||
<dict>
|
||||
<key>0</key>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>punctuation.definition.string.end.puppet</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<key>name</key>
|
||||
<string>string.quoted.single.puppet</string>
|
||||
<key>patterns</key>
|
||||
<array>
|
||||
<dict>
|
||||
<key>include</key>
|
||||
<string>#escaped_char</string>
|
||||
</dict>
|
||||
</array>
|
||||
</dict>
|
||||
<key>strings</key>
|
||||
<dict>
|
||||
<key>patterns</key>
|
||||
<array>
|
||||
<dict>
|
||||
<key>include</key>
|
||||
<string>#double-quoted-string</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>include</key>
|
||||
<string>#single-quoted-string</string>
|
||||
</dict>
|
||||
</array>
|
||||
</dict>
|
||||
<key>variable</key>
|
||||
<dict>
|
||||
<key>patterns</key>
|
||||
<array>
|
||||
<dict>
|
||||
<key>captures</key>
|
||||
<dict>
|
||||
<key>1</key>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>punctuation.definition.variable.puppet</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<key>match</key>
|
||||
<string>(\$)([a-zA-Zx7f-xff\$]|::)([a-zA-Z0-9_x7f-xff\$]|::)*\b</string>
|
||||
<key>name</key>
|
||||
<string>variable.other.readwrite.global.puppet</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>captures</key>
|
||||
<dict>
|
||||
<key>1</key>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>punctuation.definition.variable.puppet</string>
|
||||
</dict>
|
||||
<key>2</key>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>punctuation.definition.variable.puppet</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<key>match</key>
|
||||
<string>(\$\{)(?:[a-zA-Zx7f-xff\$]|::)(?:[a-zA-Z0-9_x7f-xff\$]|::)*(\})</string>
|
||||
<key>name</key>
|
||||
<string>variable.other.readwrite.global.puppet</string>
|
||||
</dict>
|
||||
</array>
|
||||
</dict>
|
||||
</dict>
|
||||
<key>scopeName</key>
|
||||
<string>source.puppet</string>
|
||||
<key>uuid</key>
|
||||
<string>AAF4E089-E3C9-4FB9-B099-FD2CCBD4E786</string>
|
||||
</dict>
|
||||
</plist>
|
22
Sublime/Puppet/Templates/module.tmTemplate/info.plist
Normal file
22
Sublime/Puppet/Templates/module.tmTemplate/info.plist
Normal file
@@ -0,0 +1,22 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>command</key>
|
||||
<string>if [[ ! -d "$TM_NEW_FILE" ]]; then
|
||||
mkdir -p "$TM_NEW_FILE/manifests"
|
||||
mkdir -p "$TM_NEW_FILE/files"
|
||||
mkdir -p "$TM_NEW_FILE/templates"
|
||||
TM_YEAR=`date +%Y` \
|
||||
TM_DATE=`date +%Y-%m-%d` \
|
||||
TM_USERNAME=`niutil -readprop / /users/\$USER realname` \
|
||||
perl -pe 's/\$\{([^}]*)\}/$ENV{$1}/g' \
|
||||
< init.pp > "$TM_NEW_FILE/manifests/init.pp"
|
||||
fi
|
||||
</string>
|
||||
<key>name</key>
|
||||
<string>module</string>
|
||||
<key>uuid</key>
|
||||
<string>285328A3-F7E4-4D5C-9175-D5EFD947C787</string>
|
||||
</dict>
|
||||
</plist>
|
19
Sublime/Puppet/Templates/module.tmTemplate/init.pp
Normal file
19
Sublime/Puppet/Templates/module.tmTemplate/init.pp
Normal file
@@ -0,0 +1,19 @@
|
||||
#
|
||||
# Module: ${TM_NEW_FILE_BASENAME}
|
||||
#
|
||||
# Created by ${TM_USERNAME} on ${TM_DATE}.
|
||||
# Copyright (c) ${TM_YEAR} ${TM_ORGANIZATION_NAME}. All rights reserved.
|
||||
#
|
||||
# Define:
|
||||
#
|
||||
#
|
||||
# Parameters:
|
||||
#
|
||||
#
|
||||
# Actions:
|
||||
#
|
||||
# Requires:
|
||||
#
|
||||
# Sample Usage:
|
||||
# (start code)
|
||||
# (end)
|
55
Sublime/Puppet/info.plist
Normal file
55
Sublime/Puppet/info.plist
Normal file
@@ -0,0 +1,55 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>mainMenu</key>
|
||||
<dict>
|
||||
<key>items</key>
|
||||
<array>
|
||||
<string>1DBD7B78-91F3-4528-9AC9-B71D9E5FE445</string>
|
||||
<string>------------------------------------</string>
|
||||
<string>2D3C6C03-B268-42B1-A856-33FB0437B00E</string>
|
||||
<string>C22C1778-E61D-40EC-8E06-4B4A5ABEC0E7</string>
|
||||
<string>22538B08-D4D6-4172-B672-77893A6D8E40</string>
|
||||
<string>1A1C51EE-AC6D-4F7F-A342-4D6DE1F4FAD3</string>
|
||||
<string>C84524F5-B248-4A4B-87B9-69DCA93C393F</string>
|
||||
<string>831FA574-7FC1-47B7-BDD3-67E3E94E8188</string>
|
||||
<string>44C1B58A-0EF0-4022-A9EF-2D3B432C83FE</string>
|
||||
<string>849952B4-0D8A-4B5F-996D-35D531AAAE81</string>
|
||||
<string>4C76CA5D-F7F7-4354-AAAD-1F8B00D73823</string>
|
||||
<string>A60AC7AD-8710-4CCB-9A52-D8B84ABDD521</string>
|
||||
<string>B3E52D1C-3A49-44FA-8D1E-2910567F22C4</string>
|
||||
<string>88BA23C0-A6AD-4115-A765-9074BB8C85BD</string>
|
||||
</array>
|
||||
<key>submenus</key>
|
||||
<dict/>
|
||||
</dict>
|
||||
<key>name</key>
|
||||
<string>Puppet</string>
|
||||
<key>ordering</key>
|
||||
<array>
|
||||
<string>BAB15109-162D-4E1F-92F9-CA83A21169C3</string>
|
||||
<string>DCFE74BF-4295-47AB-B91E-66A5761BFA96</string>
|
||||
<string>13DD53A2-401B-4149-82B0-001374330B40</string>
|
||||
<string>A0062DFA-F753-41C5-B48A-5DF9AA1352DD</string>
|
||||
<string>AAF4E089-E3C9-4FB9-B099-FD2CCBD4E786</string>
|
||||
<string>2D3C6C03-B268-42B1-A856-33FB0437B00E</string>
|
||||
<string>C22C1778-E61D-40EC-8E06-4B4A5ABEC0E7</string>
|
||||
<string>22538B08-D4D6-4172-B672-77893A6D8E40</string>
|
||||
<string>1A1C51EE-AC6D-4F7F-A342-4D6DE1F4FAD3</string>
|
||||
<string>C84524F5-B248-4A4B-87B9-69DCA93C393F</string>
|
||||
<string>831FA574-7FC1-47B7-BDD3-67E3E94E8188</string>
|
||||
<string>44C1B58A-0EF0-4022-A9EF-2D3B432C83FE</string>
|
||||
<string>849952B4-0D8A-4B5F-996D-35D531AAAE81</string>
|
||||
<string>4C76CA5D-F7F7-4354-AAAD-1F8B00D73823</string>
|
||||
<string>A60AC7AD-8710-4CCB-9A52-D8B84ABDD521</string>
|
||||
<string>B3E52D1C-3A49-44FA-8D1E-2910567F22C4</string>
|
||||
<string>88BA23C0-A6AD-4115-A765-9074BB8C85BD</string>
|
||||
<string>7AC2033D-9B16-4127-8E03-0F8AD7220920</string>
|
||||
<string>285328A3-F7E4-4D5C-9175-D5EFD947C787</string>
|
||||
<string>1DBD7B78-91F3-4528-9AC9-B71D9E5FE445</string>
|
||||
</array>
|
||||
<key>uuid</key>
|
||||
<string>2DB168AA-8A4D-458B-B6DE-AFC8E60F845E</string>
|
||||
</dict>
|
||||
</plist>
|
1
Sublime/Puppet/package-metadata.json
Normal file
1
Sublime/Puppet/package-metadata.json
Normal file
@@ -0,0 +1 @@
|
||||
{"url": "https://github.com/russCloak/SublimePuppet", "version": "2013.01.11.19.53.28", "description": "Puppet (puppetlabs.com) highlighting, snippets and completion for Sublime Text 2"}
|
Reference in New Issue
Block a user