lib/chef/sugar/shell.rb in chef-sugar-ng-5.1.9 vs lib/chef/sugar/shell.rb in chef-sugar-ng-5.1.11
- old
+ new
@@ -12,11 +12,11 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
-require 'mixlib/shellout'
-require 'pathname'
+require 'mixlib/shellout' unless defined?(Mixlib::ShellOut)
+require 'pathname' unless defined?(Pathname)
class Chef
module Sugar
module Shell
extend self