[Pkg-puppet-devel] [facter] 227/352: (FACT-321) Remove interpeter arg from resolution
Stig Sandbeck Mathisen
ssm at debian.org
Sun Apr 6 22:21:48 UTC 2014
This is an automated email from the git hooks/post-receive script.
ssm pushed a commit to branch master
in repository facter.
commit e02fb64ce450ac64ceed8dfd6cec916bbbadd21e
Author: Adrien Thebo <git at somethingsinistral.net>
Date: Thu Feb 6 10:42:16 2014 -0800
(FACT-321) Remove interpeter arg from resolution
---
lib/facter/util/resolution.rb | 17 +----------------
1 file changed, 1 insertion(+), 16 deletions(-)
diff --git a/lib/facter/util/resolution.rb b/lib/facter/util/resolution.rb
index 6bb4842..8dee32f 100644
--- a/lib/facter/util/resolution.rb
+++ b/lib/facter/util/resolution.rb
@@ -21,8 +21,6 @@ class Facter::Util::Resolution
attr_accessor :code
attr_writer :value
- INTERPRETER = Facter::Util::Config.is_windows? ? "cmd.exe" : "/bin/sh"
-
extend Facter::Core::Execution
class << self
@@ -97,8 +95,7 @@ class Facter::Util::Resolution
# inside the block are rescued and printed to stderr.
#
# @api public
- def setcode(string = nil, interp = nil, &block)
- Facter.warnonce "The interpreter parameter to 'setcode' is deprecated and will be removed in a future version." if interp
+ def setcode(string = nil, &block)
if string
@code = string
@interpreter = interp || INTERPRETER
@@ -110,18 +107,6 @@ class Facter::Util::Resolution
end
end
- # @deprecated
- def interpreter
- Facter.warnonce "The 'Facter::Util::Resolution.interpreter' method is deprecated and will be removed in a future version."
- @interpreter
- end
-
- # @deprecated
- def interpreter=(interp)
- Facter.warnonce "The 'Facter::Util::Resolution.interpreter=' method is deprecated and will be removed in a future version."
- @interpreter = interp
- end
-
# (see value)
# @deprecated
def to_s
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-puppet/facter.git
More information about the Pkg-puppet-devel
mailing list