vnegrisolo/cch

View on GitHub
lib/cch/commands/shell.rb

Summary

Maintainability
A
0 mins
Test Coverage
module Cch
  module Commands
    module Shell
      def backtiq_command(command)
        log_command(command)
        (`#{command}` || '').split(/\n/)
      end

      def system_command(command)
        log_command(command)
        system(command)
      end

      private

      def log_command(command)
        Cch.logger.debug("command='#{command}'")
      end
    end
  end
end