Sha256: 5feb6e56c9ff463412ef5dd8fddd7d84df6084769082b730d78eedf66ebe648b
Contents?: true
Size: 882 Bytes
Versions: 1
Compression:
Stored size: 882 Bytes
Contents
require 'shell_helpers/version' require 'shellwords'; require 'pathname'; require 'fileutils' require 'dr/ruby_ext/core_ext'; require 'dr/ruby_ext/pathname_ext' #load everything in shell_helpers/*.rb dir=File.expand_path(File.basename(__FILE__).chomp('.rb'), File.dirname(__FILE__)) Dir.glob(File.expand_path('*.rb',dir)) do |file| require file end module SH include Run #run_command, run_output, run_status, run include CLILogging #logger.{debug info warn error fatal}, log_and_do include ExitNow #exit_now! include Sh #sh, sh! include ShellExport #export include ShellUtils #find, run_pager extend self #activates debug mode def self.debug(level=Logger::DEBUG) #activates logging on Pathname Pathname.send(:include, CLILogging) logger.level=(level) end #including SH::FU to add FileUtils module FU include ::FileUtils include ::SH extend self end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
shell_helpers-0.1.0 | lib/shell_helpers.rb |