summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorIan Taylor <ian@lorf.org>2009-06-05 12:38:35 -0400
committerJames Turnbull <james@lovedthanlost.net>2009-06-06 09:11:28 +1000
commit41ce18cc8ea239d1633fc6cd9e9f599957a82e74 (patch)
tree9d398b4e3e6d726a174b5b57094c7dd6749ccf0e /examples
parentf3b40923605420f774dac298fb1708de180c0a81 (diff)
downloadpuppet-41ce18cc8ea239d1633fc6cd9e9f599957a82e74.tar.gz
puppet-41ce18cc8ea239d1633fc6cd9e9f599957a82e74.tar.xz
puppet-41ce18cc8ea239d1633fc6cd9e9f599957a82e74.zip
Changed tabs to spaces without interfering with indentation or alignment
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/etc/init.d/sleeper16
-rw-r--r--examples/mcx_dock_default.pp216
-rw-r--r--examples/mcx_dock_full.pp216
-rw-r--r--examples/mcx_nogroup.pp216
-rw-r--r--examples/modules/sample-module/lib/puppet/parser/functions/hostname_to_dn.rb6
5 files changed, 335 insertions, 335 deletions
diff --git a/examples/etc/init.d/sleeper b/examples/etc/init.d/sleeper
index 6da5eae32..63f7e9c2e 100755
--- a/examples/etc/init.d/sleeper
+++ b/examples/etc/init.d/sleeper
@@ -51,22 +51,22 @@ function status
case "$1" in
start)
start
- ;;
+ ;;
stop)
stop
- ;;
+ ;;
restart)
stop; start
- ;;
+ ;;
status)
output=`status`
#status
exit $?
- ;;
- *)
- echo "Usage: $N {start|stop|restart|force-reload}" >&2
- exit 1
- ;;
+ ;;
+ *)
+ echo "Usage: $N {start|stop|restart|force-reload}" >&2
+ exit 1
+ ;;
esac
exit 0
diff --git a/examples/mcx_dock_default.pp b/examples/mcx_dock_default.pp
index 1f65a7316..78d678956 100644
--- a/examples/mcx_dock_default.pp
+++ b/examples/mcx_dock_default.pp
@@ -4,114 +4,114 @@ mcx { '/Groups/mcx_dock':
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
- <key>com.apple.dock</key>
- <dict>
- <key>AppItems-Raw</key>
- <dict>
- <key>state</key>
- <string>always</string>
- <key>upk</key>
- <dict>
- <key>mcx_input_key_names</key>
- <array>
- <string>AppItems-Raw</string>
- </array>
- <key>mcx_output_key_name</key>
- <string>static-apps</string>
- <key>mcx_remove_duplicates</key>
- <true/>
- </dict>
- <key>value</key>
- <array>
- <dict>
- <key>mcx_typehint</key>
- <integer>1</integer>
- <key>tile-data</key>
- <dict>
- <key>file-data</key>
- <dict>
- <key>_CFURLString</key>
- <string>/Applications/Mail.app</string>
- <key>_CFURLStringType</key>
- <integer>0</integer>
- </dict>
- <key>file-label</key>
- <string>Mail</string>
- </dict>
- <key>tile-type</key>
- <string>file-tile</string>
- </dict>
- <dict>
- <key>mcx_typehint</key>
- <integer>1</integer>
- <key>tile-data</key>
- <dict>
- <key>file-data</key>
- <dict>
- <key>_CFURLString</key>
- <string>/Applications/Safari.app</string>
- <key>_CFURLStringType</key>
- <integer>0</integer>
- </dict>
- <key>file-label</key>
- <string>Safari</string>
- </dict>
- <key>tile-type</key>
- <string>file-tile</string>
- </dict>
- </array>
- </dict>
- <key>DocItems-Raw</key>
- <dict>
- <key>state</key>
- <string>always</string>
- <key>upk</key>
- <dict>
- <key>mcx_input_key_names</key>
- <array>
- <string>DocItems-Raw</string>
- </array>
- <key>mcx_output_key_name</key>
- <string>static-others</string>
- <key>mcx_remove_duplicates</key>
- <true/>
- </dict>
- <key>value</key>
- <array/>
- </dict>
- <key>MCXDockSpecialFolders-Raw</key>
- <dict>
- <key>state</key>
- <string>always</string>
- <key>upk</key>
- <dict>
- <key>mcx_input_key_names</key>
- <array>
- <string>MCXDockSpecialFolders-Raw</string>
- </array>
- <key>mcx_output_key_name</key>
- <string>MCXDockSpecialFolders</string>
- <key>mcx_remove_duplicates</key>
- <true/>
- </dict>
- <key>value</key>
- <array/>
- </dict>
- <key>contents-immutable</key>
- <dict>
- <key>state</key>
- <string>always</string>
- <key>value</key>
- <false/>
- </dict>
- <key>static-only</key>
- <dict>
- <key>state</key>
- <string>always</string>
- <key>value</key>
- <false/>
- </dict>
- </dict>
+ <key>com.apple.dock</key>
+ <dict>
+ <key>AppItems-Raw</key>
+ <dict>
+ <key>state</key>
+ <string>always</string>
+ <key>upk</key>
+ <dict>
+ <key>mcx_input_key_names</key>
+ <array>
+ <string>AppItems-Raw</string>
+ </array>
+ <key>mcx_output_key_name</key>
+ <string>static-apps</string>
+ <key>mcx_remove_duplicates</key>
+ <true/>
+ </dict>
+ <key>value</key>
+ <array>
+ <dict>
+ <key>mcx_typehint</key>
+ <integer>1</integer>
+ <key>tile-data</key>
+ <dict>
+ <key>file-data</key>
+ <dict>
+ <key>_CFURLString</key>
+ <string>/Applications/Mail.app</string>
+ <key>_CFURLStringType</key>
+ <integer>0</integer>
+ </dict>
+ <key>file-label</key>
+ <string>Mail</string>
+ </dict>
+ <key>tile-type</key>
+ <string>file-tile</string>
+ </dict>
+ <dict>
+ <key>mcx_typehint</key>
+ <integer>1</integer>
+ <key>tile-data</key>
+ <dict>
+ <key>file-data</key>
+ <dict>
+ <key>_CFURLString</key>
+ <string>/Applications/Safari.app</string>
+ <key>_CFURLStringType</key>
+ <integer>0</integer>
+ </dict>
+ <key>file-label</key>
+ <string>Safari</string>
+ </dict>
+ <key>tile-type</key>
+ <string>file-tile</string>
+ </dict>
+ </array>
+ </dict>
+ <key>DocItems-Raw</key>
+ <dict>
+ <key>state</key>
+ <string>always</string>
+ <key>upk</key>
+ <dict>
+ <key>mcx_input_key_names</key>
+ <array>
+ <string>DocItems-Raw</string>
+ </array>
+ <key>mcx_output_key_name</key>
+ <string>static-others</string>
+ <key>mcx_remove_duplicates</key>
+ <true/>
+ </dict>
+ <key>value</key>
+ <array/>
+ </dict>
+ <key>MCXDockSpecialFolders-Raw</key>
+ <dict>
+ <key>state</key>
+ <string>always</string>
+ <key>upk</key>
+ <dict>
+ <key>mcx_input_key_names</key>
+ <array>
+ <string>MCXDockSpecialFolders-Raw</string>
+ </array>
+ <key>mcx_output_key_name</key>
+ <string>MCXDockSpecialFolders</string>
+ <key>mcx_remove_duplicates</key>
+ <true/>
+ </dict>
+ <key>value</key>
+ <array/>
+ </dict>
+ <key>contents-immutable</key>
+ <dict>
+ <key>state</key>
+ <string>always</string>
+ <key>value</key>
+ <false/>
+ </dict>
+ <key>static-only</key>
+ <dict>
+ <key>state</key>
+ <string>always</string>
+ <key>value</key>
+ <false/>
+ </dict>
+ </dict>
</dict>
</plist>
'
diff --git a/examples/mcx_dock_full.pp b/examples/mcx_dock_full.pp
index 60760332a..4fbf508fa 100644
--- a/examples/mcx_dock_full.pp
+++ b/examples/mcx_dock_full.pp
@@ -11,114 +11,114 @@ mcx {
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
- <key>com.apple.dock</key>
- <dict>
- <key>AppItems-Raw</key>
- <dict>
- <key>state</key>
- <string>always</string>
- <key>upk</key>
- <dict>
- <key>mcx_input_key_names</key>
- <array>
- <string>AppItems-Raw</string>
- </array>
- <key>mcx_output_key_name</key>
- <string>static-apps</string>
- <key>mcx_remove_duplicates</key>
- <true/>
- </dict>
- <key>value</key>
- <array>
- <dict>
- <key>mcx_typehint</key>
- <integer>1</integer>
- <key>tile-data</key>
- <dict>
- <key>file-data</key>
- <dict>
- <key>_CFURLString</key>
- <string>/Applications/Mail.app</string>
- <key>_CFURLStringType</key>
- <integer>0</integer>
- </dict>
- <key>file-label</key>
- <string>Mail</string>
- </dict>
- <key>tile-type</key>
- <string>file-tile</string>
- </dict>
- <dict>
- <key>mcx_typehint</key>
- <integer>1</integer>
- <key>tile-data</key>
- <dict>
- <key>file-data</key>
- <dict>
- <key>_CFURLString</key>
- <string>/Applications/Safari.app</string>
- <key>_CFURLStringType</key>
- <integer>0</integer>
- </dict>
- <key>file-label</key>
- <string>Safari</string>
- </dict>
- <key>tile-type</key>
- <string>file-tile</string>
- </dict>
- </array>
- </dict>
- <key>DocItems-Raw</key>
- <dict>
- <key>state</key>
- <string>always</string>
- <key>upk</key>
- <dict>
- <key>mcx_input_key_names</key>
- <array>
- <string>DocItems-Raw</string>
- </array>
- <key>mcx_output_key_name</key>
- <string>static-others</string>
- <key>mcx_remove_duplicates</key>
- <true/>
- </dict>
- <key>value</key>
- <array/>
- </dict>
- <key>MCXDockSpecialFolders-Raw</key>
- <dict>
- <key>state</key>
- <string>always</string>
- <key>upk</key>
- <dict>
- <key>mcx_input_key_names</key>
- <array>
- <string>MCXDockSpecialFolders-Raw</string>
- </array>
- <key>mcx_output_key_name</key>
- <string>MCXDockSpecialFolders</string>
- <key>mcx_remove_duplicates</key>
- <true/>
- </dict>
- <key>value</key>
- <array/>
- </dict>
- <key>contents-immutable</key>
- <dict>
- <key>state</key>
- <string>always</string>
- <key>value</key>
- <false/>
- </dict>
- <key>static-only</key>
- <dict>
- <key>state</key>
- <string>always</string>
- <key>value</key>
- <false/>
- </dict>
- </dict>
+ <key>com.apple.dock</key>
+ <dict>
+ <key>AppItems-Raw</key>
+ <dict>
+ <key>state</key>
+ <string>always</string>
+ <key>upk</key>
+ <dict>
+ <key>mcx_input_key_names</key>
+ <array>
+ <string>AppItems-Raw</string>
+ </array>
+ <key>mcx_output_key_name</key>
+ <string>static-apps</string>
+ <key>mcx_remove_duplicates</key>
+ <true/>
+ </dict>
+ <key>value</key>
+ <array>
+ <dict>
+ <key>mcx_typehint</key>
+ <integer>1</integer>
+ <key>tile-data</key>
+ <dict>
+ <key>file-data</key>
+ <dict>
+ <key>_CFURLString</key>
+ <string>/Applications/Mail.app</string>
+ <key>_CFURLStringType</key>
+ <integer>0</integer>
+ </dict>
+ <key>file-label</key>
+ <string>Mail</string>
+ </dict>
+ <key>tile-type</key>
+ <string>file-tile</string>
+ </dict>
+ <dict>
+ <key>mcx_typehint</key>
+ <integer>1</integer>
+ <key>tile-data</key>
+ <dict>
+ <key>file-data</key>
+ <dict>
+ <key>_CFURLString</key>
+ <string>/Applications/Safari.app</string>
+ <key>_CFURLStringType</key>
+ <integer>0</integer>
+ </dict>
+ <key>file-label</key>
+ <string>Safari</string>
+ </dict>
+ <key>tile-type</key>
+ <string>file-tile</string>
+ </dict>
+ </array>
+ </dict>
+ <key>DocItems-Raw</key>
+ <dict>
+ <key>state</key>
+ <string>always</string>
+ <key>upk</key>
+ <dict>
+ <key>mcx_input_key_names</key>
+ <array>
+ <string>DocItems-Raw</string>
+ </array>
+ <key>mcx_output_key_name</key>
+ <string>static-others</string>
+ <key>mcx_remove_duplicates</key>
+ <true/>
+ </dict>
+ <key>value</key>
+ <array/>
+ </dict>
+ <key>MCXDockSpecialFolders-Raw</key>
+ <dict>
+ <key>state</key>
+ <string>always</string>
+ <key>upk</key>
+ <dict>
+ <key>mcx_input_key_names</key>
+ <array>
+ <string>MCXDockSpecialFolders-Raw</string>
+ </array>
+ <key>mcx_output_key_name</key>
+ <string>MCXDockSpecialFolders</string>
+ <key>mcx_remove_duplicates</key>
+ <true/>
+ </dict>
+ <key>value</key>
+ <array/>
+ </dict>
+ <key>contents-immutable</key>
+ <dict>
+ <key>state</key>
+ <string>always</string>
+ <key>value</key>
+ <false/>
+ </dict>
+ <key>static-only</key>
+ <dict>
+ <key>state</key>
+ <string>always</string>
+ <key>value</key>
+ <false/>
+ </dict>
+ </dict>
</dict>
</plist>
'
diff --git a/examples/mcx_nogroup.pp b/examples/mcx_nogroup.pp
index ea689f33c..67d20e605 100644
--- a/examples/mcx_nogroup.pp
+++ b/examples/mcx_nogroup.pp
@@ -4,114 +4,114 @@ mcx { '/Groups/doesnotexist':
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
- <key>com.apple.dock</key>
- <dict>
- <key>AppItems-Raw</key>
- <dict>
- <key>state</key>
- <string>always</string>
- <key>upk</key>
- <dict>
- <key>mcx_input_key_names</key>
- <array>
- <string>AppItems-Raw</string>
- </array>
- <key>mcx_output_key_name</key>
- <string>static-apps</string>
- <key>mcx_remove_duplicates</key>
- <true/>
- </dict>
- <key>value</key>
- <array>
- <dict>
- <key>mcx_typehint</key>
- <integer>1</integer>
- <key>tile-data</key>
- <dict>
- <key>file-data</key>
- <dict>
- <key>_CFURLString</key>
- <string>/Applications/Mail.app</string>
- <key>_CFURLStringType</key>
- <integer>0</integer>
- </dict>
- <key>file-label</key>
- <string>Mail</string>
- </dict>
- <key>tile-type</key>
- <string>file-tile</string>
- </dict>
- <dict>
- <key>mcx_typehint</key>
- <integer>1</integer>
- <key>tile-data</key>
- <dict>
- <key>file-data</key>
- <dict>
- <key>_CFURLString</key>
- <string>/Applications/Safari.app</string>
- <key>_CFURLStringType</key>
- <integer>0</integer>
- </dict>
- <key>file-label</key>
- <string>Safari</string>
- </dict>
- <key>tile-type</key>
- <string>file-tile</string>
- </dict>
- </array>
- </dict>
- <key>DocItems-Raw</key>
- <dict>
- <key>state</key>
- <string>always</string>
- <key>upk</key>
- <dict>
- <key>mcx_input_key_names</key>
- <array>
- <string>DocItems-Raw</string>
- </array>
- <key>mcx_output_key_name</key>
- <string>static-others</string>
- <key>mcx_remove_duplicates</key>
- <true/>
- </dict>
- <key>value</key>
- <array/>
- </dict>
- <key>MCXDockSpecialFolders-Raw</key>
- <dict>
- <key>state</key>
- <string>always</string>
- <key>upk</key>
- <dict>
- <key>mcx_input_key_names</key>
- <array>
- <string>MCXDockSpecialFolders-Raw</string>
- </array>
- <key>mcx_output_key_name</key>
- <string>MCXDockSpecialFolders</string>
- <key>mcx_remove_duplicates</key>
- <true/>
- </dict>
- <key>value</key>
- <array/>
- </dict>
- <key>contents-immutable</key>
- <dict>
- <key>state</key>
- <string>always</string>
- <key>value</key>
- <false/>
- </dict>
- <key>static-only</key>
- <dict>
- <key>state</key>
- <string>always</string>
- <key>value</key>
- <false/>
- </dict>
- </dict>
+ <key>com.apple.dock</key>
+ <dict>
+ <key>AppItems-Raw</key>
+ <dict>
+ <key>state</key>
+ <string>always</string>
+ <key>upk</key>
+ <dict>
+ <key>mcx_input_key_names</key>
+ <array>
+ <string>AppItems-Raw</string>
+ </array>
+ <key>mcx_output_key_name</key>
+ <string>static-apps</string>
+ <key>mcx_remove_duplicates</key>
+ <true/>
+ </dict>
+ <key>value</key>
+ <array>
+ <dict>
+ <key>mcx_typehint</key>
+ <integer>1</integer>
+ <key>tile-data</key>
+ <dict>
+ <key>file-data</key>
+ <dict>
+ <key>_CFURLString</key>
+ <string>/Applications/Mail.app</string>
+ <key>_CFURLStringType</key>
+ <integer>0</integer>
+ </dict>
+ <key>file-label</key>
+ <string>Mail</string>
+ </dict>
+ <key>tile-type</key>
+ <string>file-tile</string>
+ </dict>
+ <dict>
+ <key>mcx_typehint</key>
+ <integer>1</integer>
+ <key>tile-data</key>
+ <dict>
+ <key>file-data</key>
+ <dict>
+ <key>_CFURLString</key>
+ <string>/Applications/Safari.app</string>
+ <key>_CFURLStringType</key>
+ <integer>0</integer>
+ </dict>
+ <key>file-label</key>
+ <string>Safari</string>
+ </dict>
+ <key>tile-type</key>
+ <string>file-tile</string>
+ </dict>
+ </array>
+ </dict>
+ <key>DocItems-Raw</key>
+ <dict>
+ <key>state</key>
+ <string>always</string>
+ <key>upk</key>
+ <dict>
+ <key>mcx_input_key_names</key>
+ <array>
+ <string>DocItems-Raw</string>
+ </array>
+ <key>mcx_output_key_name</key>
+ <string>static-others</string>
+ <key>mcx_remove_duplicates</key>
+ <true/>
+ </dict>
+ <key>value</key>
+ <array/>
+ </dict>
+ <key>MCXDockSpecialFolders-Raw</key>
+ <dict>
+ <key>state</key>
+ <string>always</string>
+ <key>upk</key>
+ <dict>
+ <key>mcx_input_key_names</key>
+ <array>
+ <string>MCXDockSpecialFolders-Raw</string>
+ </array>
+ <key>mcx_output_key_name</key>
+ <string>MCXDockSpecialFolders</string>
+ <key>mcx_remove_duplicates</key>
+ <true/>
+ </dict>
+ <key>value</key>
+ <array/>
+ </dict>
+ <key>contents-immutable</key>
+ <dict>
+ <key>state</key>
+ <string>always</string>
+ <key>value</key>
+ <false/>
+ </dict>
+ <key>static-only</key>
+ <dict>
+ <key>state</key>
+ <string>always</string>
+ <key>value</key>
+ <false/>
+ </dict>
+ </dict>
</dict>
</plist>
'
diff --git a/examples/modules/sample-module/lib/puppet/parser/functions/hostname_to_dn.rb b/examples/modules/sample-module/lib/puppet/parser/functions/hostname_to_dn.rb
index 9f732b5bc..9dfa3f54c 100644
--- a/examples/modules/sample-module/lib/puppet/parser/functions/hostname_to_dn.rb
+++ b/examples/modules/sample-module/lib/puppet/parser/functions/hostname_to_dn.rb
@@ -30,7 +30,7 @@
# See: http://reductivelabs.com/trac/puppet/wiki/WritingYourOwnFunctions
module Puppet::Parser::Functions
- newfunction(:hostname_to_dn, :type => :rvalue, :doc => "Given 'foo.bar.com', return 'dc=foo,dc=bar,dc=com'.") do |args|
- args[0].split(/\./).map do |s| "dc=%s"%[s] end.join(",")
- end
+ newfunction(:hostname_to_dn, :type => :rvalue, :doc => "Given 'foo.bar.com', return 'dc=foo,dc=bar,dc=com'.") do |args|
+ args[0].split(/\./).map do |s| "dc=%s"%[s] end.join(",")
+ end
end