Sha256: d7c147f6f939d20cbd28d20dae6b869257ccde45a35147d3cd2e207b4782ad0d

Contents?: true

Size: 498 Bytes

Versions: 4

Compression:

Stored size: 498 Bytes

Contents

module GitWit
  module Commands
    module Debug
      def debug
        boot_app
        require "pp"
        debug_banner "Start"
        pp "ENVIRONMENT:", ENV
        GitWit.configure { |c| pp "GitWit Config:", c }
        debug_banner "End"
        $stdout.flush
        exec_with_sudo!
      end

      protected
      def debug_banner(msg = nil)
        msg = "#{msg} " if msg.present?
        puts "\n" * 2 + "*" * 5 + " GitWit DEBUG #{msg}" + "*" * 5 + "\n" * 2
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
git_wit-0.0.6 lib/git_wit/commands/debug.rb
git_wit-0.0.6.pre lib/git_wit/commands/debug.rb
git_wit-0.0.5 lib/git_wit/commands/debug.rb
git_wit-0.0.4.pre2 lib/git_wit/commands/debug.rb