Please review pull request #749: Remove deprecated standalone executables opened by (pcarlisle)

Description:

This removes the standalone filebucket, pi, puppetdoc, and ralsh commands.

  • Opened: Wed May 09 20:31:28 UTC 2012
  • Based on: puppetlabs:master (134bb1fb46dca7a0100b59007accc8c4d196bf8d)
  • Requested merge: pcarlisle:maint/master/remove-deprecated-standalone-commands (b0fc53b43b93f840d1ab7dc8a232a23207ab8fd0)

Diff follows:

diff --git a/bin/filebucket b/bin/filebucket
deleted file mode 100755
index 95ef7c6..0000000
--- a/bin/filebucket
+++ /dev/null
@@ -1,7 +0,0 @@
-#!/usr/bin/env ruby
-
-require 'puppet/application'
-require 'puppet/application/filebucket'
-
-# launch the filebucket
-Puppet::Application[:filebucket].run
diff --git a/bin/pi b/bin/pi
deleted file mode 100755
index f2e7312..0000000
--- a/bin/pi
+++ /dev/null
@@ -1,5 +0,0 @@
-#!/usr/bin/env ruby
-
-require 'puppet/application/describe'
-
-Puppet::Application[:describe].run
diff --git a/bin/puppetdoc b/bin/puppetdoc
deleted file mode 100755
index ea08aa2..0000000
--- a/bin/puppetdoc
+++ /dev/null
@@ -1,4 +0,0 @@
-#!/usr/bin/env ruby
-
-require 'puppet/application/doc'
-Puppet::Application[:doc].run
diff --git a/bin/ralsh b/bin/ralsh
deleted file mode 100755
index a788e35..0000000
--- a/bin/ralsh
+++ /dev/null
@@ -1,4 +0,0 @@
-#!/usr/bin/env ruby
-
-require 'puppet/application/resource'
-Puppet::Application[:resource].run
diff --git a/lib/puppet/util/constant_inflector.rb b/lib/puppet/util/constant_inflector.rb
index 128bbc9..ddc797a 100644
--- a/lib/puppet/util/constant_inflector.rb
+++ b/lib/puppet/util/constant_inflector.rb
@@ -5,15 +5,19 @@
 
 # A common module for converting between constants and
 # file names.
-module Puppet::Util::ConstantInflector
-  def file2constant(file)
-    # LAK:NOTE See http://snurl.com/21zf8  [groups_google_com]
-    x = file.split("/").collect { |name| name.capitalize }.join("::").gsub(/_+(.)/) { |term| $1.capitalize }
-  end
-  module_function :file2constant
+module Puppet
+  module Util
+    module ConstantInflector
+      def file2constant(file)
+        # LAK:NOTE See http://snurl.com/21zf8  [groups_google_com]
+        x = file.split("/").collect { |name| name.capitalize }.join("::").gsub(/_+(.)/) { |term| $1.capitalize }
+      end
+      module_function :file2constant
 
-  def constant2file(constant)
-    constant.to_s.gsub(/([a-z])([A-Z])/) { |term| $1 + "_#{$2}" }.gsub("::", "/").downcase
+      def constant2file(constant)
+        constant.to_s.gsub(/([a-z])([A-Z])/) { |term| $1 + "_#{$2}" }.gsub("::", "/").downcase
+      end
+      module_function :constant2file
+    end
   end
-  module_function :constant2file
 end

    

--
You received this message because you are subscribed to the Google Groups "Puppet Developers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to [email protected].
For more options, visit this group at http://groups.google.com/group/puppet-dev?hl=en.

Reply via email to