[Pkg-puppet-devel] [facter] 141/352: Move execution module from util to core
Stig Sandbeck Mathisen
ssm at debian.org
Sun Apr 6 22:21:39 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 1998cda3e1ecc6c9e15fa16e9c974132c9db4aa1
Author: Adrien Thebo <git at somethingsinistral.net>
Date: Fri Jan 10 12:06:59 2014 -0800
Move execution module from util to core
---
lib/facter/{util => core}/execution.rb | 2 +-
lib/facter/util/resolution.rb | 5 +++--
spec/unit/{util => core}/execution_spec.rb | 4 ++--
3 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/lib/facter/util/execution.rb b/lib/facter/core/execution.rb
similarity index 99%
rename from lib/facter/util/execution.rb
rename to lib/facter/core/execution.rb
index 875470a..7173730 100644
--- a/lib/facter/util/execution.rb
+++ b/lib/facter/core/execution.rb
@@ -1,7 +1,7 @@
require 'facter/util/config'
module Facter
- module Util
+ module Core
module Execution
module_function
diff --git a/lib/facter/util/resolution.rb b/lib/facter/util/resolution.rb
index 742bb98..c7e6b83 100644
--- a/lib/facter/util/resolution.rb
+++ b/lib/facter/util/resolution.rb
@@ -1,7 +1,7 @@
require 'facter/util/confine'
require 'facter/util/config'
require 'facter/util/normalization'
-require 'facter/util/execution'
+require 'facter/core/execution'
require 'timeout'
@@ -30,7 +30,8 @@ class Facter::Util::Resolution
INTERPRETER = Facter::Util::Config.is_windows? ? "cmd.exe" : "/bin/sh"
- extend Facter::Util::Execution
+ extend Facter::Core::Execution
+
class << self
# Expose command execution methods that were extracted into
# Facter::Util::Execution from Facter::Util::Resolution in Facter 2.0.0 for
diff --git a/spec/unit/util/execution_spec.rb b/spec/unit/core/execution_spec.rb
similarity index 99%
rename from spec/unit/util/execution_spec.rb
rename to spec/unit/core/execution_spec.rb
index 74dacf6..e535f05 100644
--- a/spec/unit/util/execution_spec.rb
+++ b/spec/unit/core/execution_spec.rb
@@ -1,7 +1,7 @@
require 'spec_helper'
-require 'facter/util/execution'
+require 'facter/core/execution'
-describe Facter::Util::Execution do
+describe Facter::Core::Execution do
describe "#search_paths" do
context "on windows", :as_platform => :windows do
--
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