diff options
| author | Ian Taylor <ian@lorf.org> | 2009-06-05 12:39:04 -0400 |
|---|---|---|
| committer | James Turnbull <james@lovedthanlost.net> | 2009-06-06 09:12:00 +1000 |
| commit | 4f2c066a97e59a89df64af4b25beac6f3f0553c2 (patch) | |
| tree | 126540beec3c65448e01e1b48d27275ec4ee6ea4 /lib/puppet/external | |
| parent | 97e6975d69f239e24993315a25a3117b1daa48c3 (diff) | |
| download | puppet-4f2c066a97e59a89df64af4b25beac6f3f0553c2.tar.gz puppet-4f2c066a97e59a89df64af4b25beac6f3f0553c2.tar.xz puppet-4f2c066a97e59a89df64af4b25beac6f3f0553c2.zip | |
Removed extra whitespace from end of lines
Diffstat (limited to 'lib/puppet/external')
| -rw-r--r-- | lib/puppet/external/dot.rb | 26 | ||||
| -rw-r--r-- | lib/puppet/external/event-loop/better-definers.rb | 4 | ||||
| -rw-r--r-- | lib/puppet/external/lock.rb | 2 | ||||
| -rwxr-xr-x | lib/puppet/external/nagios/base.rb | 6 | ||||
| -rw-r--r-- | lib/puppet/external/nagios/parser.rb | 2 |
5 files changed, 20 insertions, 20 deletions
diff --git a/lib/puppet/external/dot.rb b/lib/puppet/external/dot.rb index fcd5c6a85..b0d542891 100644 --- a/lib/puppet/external/dot.rb +++ b/lib/puppet/external/dot.rb @@ -1,5 +1,5 @@ # rdot.rb -# +# # # This is a modified version of dot.rb from Dave Thomas's rdoc project. I [Horst Duchene] # renamed it to rdot.rb to avoid collision with an installed rdoc/dot. @@ -7,19 +7,19 @@ # It also supports undirected edges. module DOT - + # These glogal vars are used to make nice graph source. $tab = ' ' $tab2 = $tab * 2 - + # if we don't like 4 spaces, we can change it any time def change_tab (t) $tab = t $tab2 = t * 2 end - + # options for node declaration NODE_OPTS = [ @@ -56,7 +56,7 @@ module DOT 'bgcolor', 'rank' ] - + # options for edge declaration EDGE_OPTS = [ @@ -96,7 +96,7 @@ module DOT # maintained for backward compatibility or rdot internal 'id' ] - + # options for graph declaration GRAPH_OPTS = [ @@ -111,7 +111,7 @@ module DOT 'rank', 'rankdir', 'ranksep', 'ratio', 'size' ] - + # a root class for any element in dot notation class DOTSimpleElement @@ -126,7 +126,7 @@ module DOT @name end end - + # an element that has options ( node, edge, or graph ) class DOTElement < DOTSimpleElement @@ -159,8 +159,8 @@ module DOT #end end - - + + # This is used when we build nodes that have shape=record # ports don't have options :) @@ -177,7 +177,7 @@ module DOT ( @name && @name != "" ? "<#{@name}>" : "" ) + "#{@label}" end end - + # node element class DOTNode < DOTElement @@ -300,7 +300,7 @@ module DOT @from = params['from'] ? params['from'] : nil @to = params['to'] ? params['to'] : nil end - + def edge_link '--' end @@ -315,7 +315,7 @@ module DOT end end # class DOTEdge - + class DOTDirectedEdge < DOTEdge def edge_link diff --git a/lib/puppet/external/event-loop/better-definers.rb b/lib/puppet/external/event-loop/better-definers.rb index 09e33fdb5..5d6175fe9 100644 --- a/lib/puppet/external/event-loop/better-definers.rb +++ b/lib/puppet/external/event-loop/better-definers.rb @@ -172,7 +172,7 @@ class Module def define_methods (*names, &body) names.each { |name| define_method(name, &body) } end - + def define_private_methods (*names, &body) define_methods(*names, &body) names.each { |name| private name } @@ -280,7 +280,7 @@ if __FILE__ == $0 assert_equal @y.baz, 321 assert_equal @y.quux, 654 end - + def test_define_soft_aliases @X.define_method(:foo) { 123 } @X.define_method(:baz) { 321 } diff --git a/lib/puppet/external/lock.rb b/lib/puppet/external/lock.rb index 5213f5657..785ecd637 100644 --- a/lib/puppet/external/lock.rb +++ b/lib/puppet/external/lock.rb @@ -36,7 +36,7 @@ class File flush flock(LOCK_UN) end - + # Get a shared (i.e., read) lock on the file, and yield to the block. # If the lock is not available, wait for it without blocking other ruby # threads. diff --git a/lib/puppet/external/nagios/base.rb b/lib/puppet/external/nagios/base.rb index 6a0c1831c..5185c92f7 100755 --- a/lib/puppet/external/nagios/base.rb +++ b/lib/puppet/external/nagios/base.rb @@ -231,9 +231,9 @@ class Nagios::Base # This is probably a bad idea. def name=(value) - unless self.class.namevar.to_s == "name" - send(self.class.namevar.to_s + "=", value) - end + unless self.class.namevar.to_s == "name" + send(self.class.namevar.to_s + "=", value) + end end def namevar diff --git a/lib/puppet/external/nagios/parser.rb b/lib/puppet/external/nagios/parser.rb index d8a8bceea..498b0884e 100644 --- a/lib/puppet/external/nagios/parser.rb +++ b/lib/puppet/external/nagios/parser.rb @@ -402,7 +402,7 @@ module Racc toks.each {|t| out.print ' ', racc_token2str(t) } end out.puts " --> #{racc_token2str(sim)}" - + racc_print_stacks tstack, vstack @racc_debug_out.puts end |
