method

capture_command

capture_command(command, pattern = nil)
private

No documentation available.

# File railties/lib/rails/generators/app_base.rb, line 539
      def capture_command(command, pattern = nil)
        output = `#{command}`
        if pattern
          output[pattern]
        else
          output
        end
      rescue SystemCallError
        nil
      end