summaryrefslogtreecommitdiffstats
path: root/lib/puppet/application/string.rb
diff options
context:
space:
mode:
authorDaniel Pittman <daniel@puppetlabs.com>2011-04-01 10:44:35 -0700
committerDaniel Pittman <daniel@puppetlabs.com>2011-04-04 13:31:38 -0700
commiteb4c4fbdc3951c220a76ec01abc33a7654d89e53 (patch)
tree513ca3fe7b5ad9e94ab8660a773c9f53f72297f3 /lib/puppet/application/string.rb
parent8723b1c2102a181d23c9fe4ede7d58294f7c18ba (diff)
downloadpuppet-eb4c4fbdc3951c220a76ec01abc33a7654d89e53.tar.gz
puppet-eb4c4fbdc3951c220a76ec01abc33a7654d89e53.tar.xz
puppet-eb4c4fbdc3951c220a76ec01abc33a7654d89e53.zip
(#6749) Start porting existing strings to the options API.
This provides a solid test of the new code, by migrating the existing strings to match. This also gives us a chance to determine any weak points in the code as written. Reviewed-By: Pieter van de Bruggen <pieter@puppetlabs.com>
Diffstat (limited to 'lib/puppet/application/string.rb')
-rw-r--r--lib/puppet/application/string.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/puppet/application/string.rb b/lib/puppet/application/string.rb
index aa369e669..0a6a798ce 100644
--- a/lib/puppet/application/string.rb
+++ b/lib/puppet/application/string.rb
@@ -83,7 +83,7 @@ class Puppet::Application::String < Puppet::Application
def actions(indirection)
return [] unless string = Puppet::String[indirection, '0.0.1']
string.load_actions
- return string.actions.sort { |a,b| a.to_s <=> b.to_s }
+ return string.actions.sort { |a, b| a.to_s <=> b.to_s }
end
def load_applications